From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin@cygwin.com
Subject: Re: cygwin 2.0.2, make 4.1: stderr redirect append does not work with native Windows programs
Date: Fri, 15 May 2015 09:40:00 -0000 [thread overview]
Message-ID: <20150515183339.c708bd1d310149fe02dc121e@nifty.ne.jp> (raw)
In-Reply-To: <55525B85.90001@coverity.com>
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 <takashi.yano@nifty.ne.jp>
--
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
next prev parent reply other threads:[~2015-05-15 9:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <5551188B.7050503@coverity.com>
2015-05-13 3:33 ` Scott McPeak
2015-05-13 10:34 ` Lemke, Michael ST/HZA-ZSW
2015-05-14 0:04 ` Scott McPeak
2015-05-15 9:40 ` Takashi Yano [this message]
2015-05-16 18:18 ` Scott McPeak
2015-05-27 11:57 ` Corinna Vinschen
2015-05-27 16:25 ` Marco Atzeri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150515183339.c708bd1d310149fe02dc121e@nifty.ne.jp \
--to=takashi.yano@nifty.ne.jp \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).