This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: echo vs. ls race condition?
"Hannu E K Nevalainen" <garbage_collector@telia.com> writes:
>> From: Henry S. Thompson
>> Sent: Monday, May 24, 2004 6:32 PM
>
>> Fred Kulack <kulack@we.bigblue.xxx> writes:
>>
>> >> Short summary: a loop with echo and ls does not produce well-ordered
>> >> output
>> >
<snip/>
> FWIW; I can reproduce it. It seems to me that it is some kind of problem
> with bash's use of subshells in loops (synchronizing output). I have no
> knowledge of the internals here, so bear with me.
That sounds plausible, but I too am incompetent to delve much
deeper. . . There's the old issue of process id re-use, perhaps?
Thanks for trying it, and simplifying.
ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
--
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/