From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12608 invoked from network); 19 May 2000 14:50:34 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 19 May 2000 14:50:34 -0000 Received: (qmail 19010 invoked by alias); 19 May 2000 14:50:20 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11468 Received: (qmail 19003 invoked from network); 19 May 2000 14:50:18 -0000 From: "Bart Schaefer" Message-Id: <1000519144958.ZM625@candle.brasslantern.com> Date: Fri, 19 May 2000 14:49:58 +0000 In-Reply-To: <1000519083021.ZM282@candle.brasslantern.com> Comments: In reply to "Bart Schaefer" "Re: PATCH (?): Re: suspend while loop." (May 19, 8:30am) References: <200005190743.JAA05852@beta.informatik.hu-berlin.de> <1000519083021.ZM282@candle.brasslantern.com> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH (?): Re: suspend while loop. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 19, 8:30am, Bart Schaefer wrote: } Subject: Re: PATCH (?): Re: suspend while loop. } } However, that doesn't affect 3.0.8, so I think I'm going to go ahead with } 11461 for that release (unless somebody hollers today to stop me). Here's one other oddment: zagzig% cat | while read line; do echo $line; done; : ^Z^C zsh: suspended cat | zsh: running while read line; do; echo $line; done zagzig% jobs [1] + suspended cat | running while read line; do; echo $line; done zagzig% fg [1] + continued cat | while read line; do; echo $line; done foo zagzig% According to Etc/BUGS, the `; :' forces zsh to fork before starting the while loop. So in that case I would have expected ^Z to work, but it doesn't. Following the ^Z with a ^C appears to background the job, but that hasn't really happened either; the while loop is not running, it's already gotten a failure return from read. Is it sitting there waiting for "cat" to die? (Which cat does, from a closed stdout, I think, as soon as you give it any input.) I'm still not going to try to deal with this for 3.0.8 except to mention it in BUGS. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com