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

Re: stopping "wait" in (sub)script ?



Zoltan Hidvegi wrote:
> > > I cannot stop such command
> > > 
> > > $ for i in `cat ss`
> > > for> do xvi $i &
> > > for> wait
> > > for> done
> > 
> > yup, same here on IRIX 5.3 with 3.1.2-test1.  The `cat ss` is
> > definitely necessary, there is no problem if it's replaced by a simple
> > list of values.  Weird.
> 
> OK, now I got it.  The fix looks really simple, and I do hope that this is
> really al that's needed.

This doesn't seem to fix this particular bug here, it's still
uninterruptible.  On the other hand, replacing `cat ss` with $(<ss)
has always worked.  That doesn't leave much code in getoutput() to
make the difference.

> (:); while true; do; done

This bug has been fixed as you say, so the patch is right as far as it
goes.

-- 
Peter Stephenson <pws@xxxxxx>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77413
Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.



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