www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4F503DC0.8090901@cs.cmu.edu> |
Date: | Thu, 01 Mar 2012 19:25:52 -0800 |
From: | Paul Allen Newell <pnewell AT cs DOT cmu DOT edu> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.27) Gecko/20120216 Thunderbird/3.1.19 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
CC: | pnewell AT cs DOT cmu DOT edu |
Subject: | Re: make producing basename error that can't be captured by "make &> make.out" |
References: | <4F5035D0 DOT 9070502 AT cs DOT cmu DOT edu> <CADex0xx-sC-aqHMJC1BtVbDvWHEFNB-zpmeWAv6dqTSZSvmF-w AT mail DOT gmail DOT com> <CADex0xyuU+Ljm=Uh5_vD-7KTqsdBEhMdMT8B8EiQb+4Wio0q0g AT mail DOT gmail DOT com> |
In-Reply-To: | <CADex0xyuU+Ljm=Uh5_vD-7KTqsdBEhMdMT8B8EiQb+4Wio0q0g@mail.gmail.com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On 3/1/2012 7:10 PM, Kenneth Wolcott wrote: > On Thu, Mar 1, 2012 at 19:05, Kenneth Wolcott<kennethwolcott AT gmail DOT com> wrote: >> > Is it possible that scripts and executables write to file descripter 3 or > 4 or 5? File descriptor 0 is STDIN (normally), and file descriptor 1 is > STDOUT (normally) and file descripter 2 is SDTERR (normally). > > So, perhaps you might want to try to capture/merge the output of file > descriptor 3, or 4 or 5? > > The syntax for merging is quite similar to the "2<&1" for bash which means > "please merge the STDERR with the STDOUT". > > HTH, > Ken Wolcott > > Ken: Thanks for the suggestion. Having a bit of difficulty getting all the different ways of redirecting to work (makes me wonder about both my copy of bash and my understanding of bash). I was able to get: +++ make > make.out 2>&1 +++ to produce the same results as "&>". If I replace the "2" with 3/4/5, I still get the basename going to screen, but the makefile's error as well (which is what I would expect since I am not redirecting "2") Paul -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |