This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Sequential writes to stdout is messed up (Bash only?)


Yes, the test version bash 2.05b-17 seams to solve the problem.
Thanks!

BTW the one liner to demonstrate the problem was not correct
(http://cygwin.com/ml/cygwin/2004-11/msg00946.html).

The correct one is:

printf 1 > 1; while true; do cat 1; echo 2; done | cat

The difference is the "| cat" without which the correct 12 sequence is
generated.
You need to have a pipe to get the bad output.


----- Original Message ----- 
From: "Christopher Faylor" <cgf-no-personal-reply-please@cygwin.com>
To: <cygwin@cygwin.com>
Sent: Tuesday, November 23, 2004 5:10 PM
Subject: Re: Sequential writes to stdout is messed up (Bash only?)


> On Tue, Nov 23, 2004 at 04:52:57PM +0100, Fekete Krisztian wrote:
> >The problem can be demonstrated by executing the following in bash:
>
> You probably want to try the recently announced test version of
bash:
>
> http://cygwin.com/ml/cygwin-announce/2004-11/msg00024.html
>


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]