Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: bug with for and |&
- X-seq: zsh-workers 13297
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: bug with for and |&
- Date: Tue, 19 Dec 2000 12:36:28 +0000
- In-reply-to: Your message of "Tue, 19 Dec 2000 10:33:56 GMT." <Bc0a8890c50936400e1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
The problem is general to cases where a current-shell construct on the left
of the pipeline contains an external command. It doesn't matter what's on
the right of the pipeline. The code on the left seems to be executing all
right.
% exec 3>&2
% { ls; print Finished >&3 } |& cat
Finished
and it hangs in zwaitjobs, waiting for the job to finish, which it never
does. Change `ls' to `print foo' and the problem goes away.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author