Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: suspend (^Z) behavior while a function is running is unclear
On Feb 20, 8:48pm, Mikael Magnusson wrote:
} Subject: Re: suspend (^Z) behavior while a function is running is unclear
}
} On 20 February 2012 19:53, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
} >
} > foreach foo (a b c) { print $foo; sleep 5 } | while { read -rE } { : }
} >
} > (Using shortloops syntax to emphasize zsh-ness of this trick.)
}
} (This is actually not shortloops syntax.)
Well, OK: "alternative" loop syntax, if you want to be that persnickety.
(This is zsh-workers, though, so I doubt anyone is going to be confused.)
Hm, using braces instead of "end" isn't even documented for "foreach", so
I guess that's neither alternative nor shortloops.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author