Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 X-Authentication-Warning: erasmus.inf.ed.ac.uk: ht set sender to ht AT inf DOT ed DOT ac DOT uk using -f To: cygwin AT cygwin DOT com Subject: Re: echo vs. ls race condition? References: From: ht AT inf DOT ed DOT ac DOT uk (Henry S. Thompson) Date: Tue, 25 May 2004 09:57:12 +0100 In-Reply-To: (Hannu E. K. Nevalainen's message of "Mon, 24 May 2004 22:27:02 +0200") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii "Hannu E K Nevalainen" writes: >> From: Henry S. Thompson >> Sent: Monday, May 24, 2004 6:32 PM > >> Fred Kulack writes: >> >> >> Short summary: a loop with echo and ls does not produce well-ordered >> >> output >> > > 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 AT inf DOT ed DOT ac DOT 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/