This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Sequential writes to stdout is messed up (Bash only?)
- From: "Fekete Krisztian" <fkr0 at mailbox dot hu>
- To: <cygwin at cygwin dot com>
- Date: Tue, 23 Nov 2004 16:52:57 +0100
- Subject: Sequential writes to stdout is messed up (Bash only?)
Hi,
The problem can be demonstrated by executing the following in bash:
printf 1 > 1; while true; do cat 1; echo 2; done
Expected result would be an endless stream of 12-s:
12
12
...
The real result is something different - see below.
Executing
ksh -c 'printf 1 > 1; while true; do cat 1; echo 2; done'
gives the expected stream (pdksh).
BR,
Krisztian Fekete
PS.:
My cygwin is up to date, running on Windows 2000.
cygwin/bash result:
12
12
12
12
12
12
2
112
12
12
2
2
12
112
12
2
1112
2
2
1112
12
2
2
12
12
1112
...
--
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/