Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: "echo | ps -j $(:) | cat | cat | cat" runs components in different process groups
2018-03-25 08:00:53 +0100, Stephane Chazelas:
[...]
> That also causes some surprises like in
[...]
> Or (though some would find the zsh behaviour less surprising):
>
> $ n=1; echo $((++n)) >&2 | echo $((++n)) >&2 | echo $n
> 2
> 3
> 3
[...]
Or:
$ true; true | true $(false) | echo $?
1
$ false; echo $(:) | echo $?
0
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author