X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; q=dns; s=default; b=CkWpVB+Xw/pDxo9q7DBV6+3knK8iJGaysGMFB2ouli0 +ftNZBlJrOTMRS2mp5F9JYnCr9udWk8CFR76g6/K+jBfoH89R3Unw+NU0M0ARcy0 H/wS6CXt3QaHH+LuHMMdOlq0Xxr0ddP3Fw6AqhpCzHRcLdxTXWDR7FIqn+mJWatQ = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; s=default; bh=E2EnlyynVBAN0L+K8OZ4zA6+9Eo=; b=Z5lYrAJJ2wVvOq68G 7J1IHtiImpYU5qWF2U5zuCXRnFUPUvLSvBNiC7so/ztVGrIRkRTt3meEnaAXK1/8 kIT6zu+QWYUXqhyWGevY2DGE8uVLcinCAQB1f7XhOT9aUjRs1ZiNf7BCj4uGJx40 m5U3tOguyVcAARQa/Wab+pCNFw= 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 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 X-Nifty-SrcIP: [121.93.68.199] Date: Fri, 15 May 2015 18:33:39 +0900 From: Takashi Yano To: cygwin AT cygwin DOT 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 DOT 7050503 AT coverity DOT com> <55525B85 DOT 90001 AT coverity DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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