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:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=Rt/KkBAQPEXZfTgZp60gBiL3jzsHsvvA2ZKEyCP+7Kqelr8vgDkOk 2+7+/LkCyounizzr2TqHo6fWDF2YpzRoRBPT0ri9zTnMo4P3Euj0WR1hsXJZu+ks wnsx90ahqX8QWNU/r6JcsOCenS7HPw0MBlOFFb/JFKj7r1YDHAWoI4= 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:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=q747yZ7NUYiJLWOXSuGKMD7nzao=; b=fVYKyuI4U7fhkot4lvt5EvPehrEe jjyIuBdwVOuk454OMKmDJV2s5wCPUAxp3+bwu7bBe3Og2LxRQ23HPRsau9jruAe3 bAEv/xnyf940l3La/X/WA0BmqyiOC7St1Ld/wUbr+ZnNEDufp96EcYz6lPAHdI8F oSot/pQgrBwxSqI= 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=-4.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Date: Wed, 27 May 2015 13:48:01 +0200 From: Corinna Vinschen 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: <20150527114801.GB16927@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <5551188B DOT 7050503 AT coverity DOT com> <55525B85 DOT 90001 AT coverity DOT com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="UHN/qo2QbUvPLonB" Content-Disposition: inline In-Reply-To: <55525B85.90001@coverity.com> User-Agent: Mutt/1.5.23 (2014-03-12) --UHN/qo2QbUvPLonB Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On May 12 12:59, Scott McPeak wrote: > I am attaching a reproducer Makefile. Run "make 2>&1 | cat" to see > the incorrect output: >=20 > $ 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 ----- >=20 > 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.) This appears to be an issue with make 4. Using make 3.82.90 under recent Cygwin "fixes" the issue. "Fixes" in quotes, because this might be a result of how more recent make versions handle I/O. This could be a deliberate decision in terms of flushing output to a file. Then again, it's rather puzzeling that this affects a file only opened by the subshell. Marco, do you see a chance trying to find out why this occurs? Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --UHN/qo2QbUvPLonB Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVZa7xAAoJEPU2Bp2uRE+gAf8P/icUH+vkhHV5+neJF9TWDj6U qsXZKS+l7VKoEd6P9hpabJqccmp6E+YBzi90MPo6+oAlirsxYl71m1DHPoSTRyQK In+f7SBVbbGL1wMBHA9mR9sF1TLW+vrosuOuO/NYar7hOqyX+oHGWhgRe7LuOEkw 6fE5sskLOpJRxSMzXXDwu/d1hclcjr/FS/kK6Td3mZxDom+vgXCvD3KADRZ4GcTh cvd4H7I4zXrYMTj9ZO7R74rmoXrr/0uv9Udyo8CMBK/PKmB7Y1xitruvPsPis52L E8dOTyI67bVchsO1TEEPfQZiMj4YmLj8owRhQCcZuKQDeE8JxYKHHAp+zAwys3E2 95xDdFEWf2jkkBQxB/Vlx1VSdxlacUtKIH+X6UV4/lEATFKBks4ENsTaeGXzt5ch lwIHwl0vGsrAhkPYQb13XKJd82XsratUEznlLFeftqh+ottAKY94O3Ub015nyrpi fJq1188u0ObPnoW3s6vTsT/eIx0rTQI7IhtZ0bnRPvWe1hD4JJiRFKmKwdtCewjV X8DAFA86JVjoj0sLnmVAo/mHApx7uBb5O9pnwEiyTtWoCFsktolo3k/YFsyKR68u 1Ipw6RKNWztkbbpzfEzmnATK/uJeTg1SWXmYfMW+UhEEgCl5OfxqcVspPlNShHTJ lSV9Bkj7Mo3ps+66ky9T =HBdg -----END PGP SIGNATURE----- --UHN/qo2QbUvPLonB--