From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 55617 invoked by alias); 15 May 2015 09:33:33 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 55592 invoked by uid 89); 15 May 2015 09:33:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_40,RCVD_IN_SORBS_DUL,SPF_PASS autolearn=ham version=3.3.2 X-HELO: conuserg005-v.nifty.com Received: from conuserg005.nifty.com (HELO conuserg005-v.nifty.com) (202.248.45.246) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (DES-CBC3-SHA encrypted) ESMTPS; Fri, 15 May 2015 09:33:31 +0000 Received: from Express5800-S70 (ntsitm305199.sitm.nt.ftth.ppp.infoweb.ne.jp [121.93.68.199]) (authenticated) by conuserg005-v.nifty.com with ESMTP id t4F9XLbn009265 for ; Fri, 15 May 2015 18:33:22 +0900 X-Nifty-SrcIP: [121.93.68.199] Date: Fri, 15 May 2015 09:40:00 -0000 From: Takashi Yano To: cygwin@cygwin.com Subject: Re: cygwin 2.0.2, make 4.1: stderr redirect append does not work with native Windows programs Message-Id: <20150515183339.c708bd1d310149fe02dc121e@nifty.ne.jp> In-Reply-To: <55525B85.90001@coverity.com> References: <5551188B.7050503@coverity.com> <55525B85.90001@coverity.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-05/txt/msg00173.txt.bz2 On Tue, 12 May 2015 12:59:01 -0700 Scott McPeak wrote: > I am attaching a reproducer Makefile. Run "make 2>&1 | cat" to see > the incorrect output: > > $ make 2>&1 | cat > echo first > output > echo secondxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx >> > output > /cygdrive/c/Windows/System32/sort.exe nonexist 2>> output; true > ----- BEGIN output ----- > nonexistThe system cannot find the file specified. > xxxxxxxxxxxxxx > ----- END output ----- > > The bug happens with both make 4.1 and make 4.0 on cygwin 2.0.2. It > does not happen with make 3.82.90 and cygwin 1.7.23. (And that is > my only known workaround: downgrade to cygwin 1.7.) Although I'm not sure why this happens (maybe a bug of make), try make -O 2>&1 | cat With option -O, it seems to work as expected. -- Takashi Yano -- 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