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 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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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