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

Re: Shell job structure



On Fri, 25 Oct 2013 08:13:11 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> You mean like this?
> 
> % true | false | true | (){ false | true | false; print $pipestatus }; print $pipestatus
> 1 0 1
> 0 1 0 0
> 
> Here's a loop construct:
> 
> % false | true | false | while true | false | true; do print $pipestatus; break; done; print $pipestatus
> 0 1 0
> 1 0 1 0

That's the sort of thing I'm worrying about.  As long as it can identify
succesfully which job it needs to worry about at any time, it should be
OK.

pws



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