Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: compdump (Re: Test hanger disappeared, but ...)
- X-seq: zsh-workers 12170
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: PATCH: compdump (Re: Test hanger disappeared, but ...)
- Date: Wed, 05 Jul 2000 10:35:01 +0100
- In-reply-to: "Your message of Wed, 05 Jul 2000 08:39:38 +0200." <200007050639.IAA10663@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Sven wrote:
> That's interesting... For example, with
>
> while true; do echo > unwritable; sleep 1; done
>
> zsh stops after the first attempt. bash and ksh don't stop and the
> /bin/sh here stops after the first attempt, too.
>
> With
>
> while true; do echo $(for); sleep 1; done
>
> zsh stops (and prints two error messages!), bash does not stop, but
> ksh and /bin/sh do.
These are all perfectly arguable. In the second case, it's only because
parsing is done before the fork that the shell actually gives up. If you
attempted to write to an unwritable file in the $(...) it wouldn't stop. I
don't have any conclusion.
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>
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