Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Strange function/pipestatus behavior, maybe a scope bug?
On Tue, 22 Oct 2013 11:03:07 -0700
Ian F <in4mer@xxxxxxxxx> wrote:
> Potential bug case:
>
> awkFunc() { awk; }
>
> % false | true | false | true | awkFunc; echo $pipestatus
> 0
Yes, that's a bug owing to the way the shell executes internal shell
commands within the right hand side of a pipeline. There was a thread
on this starting at zsh-workers/29973:
http://www.zsh.org/mla/workers/2011/msg01394.html
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author