Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: suspend while loop.



On May 17,  3:41am, Tanaka Akira wrote:
> Subject: suspend while loop.
> Z(4):akr@serein% Src/zsh -f
> serein% cat |while read line; do echo $line; done
> <C-z>
> 
> `cat' is suspended.  But zsh wait something yet...

I think you can't break out of `read' with ^Z.  Try it without the cat|
and you'll find you can't suspend the loop.



Messages sorted by: Reverse Date, Date, Thread, Author