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

Re: subprocess



On 6/5/20, Pier Paolo Grassi <pierpaolog@xxxxxxxxx> wrote:
> hello, can someone explain why (with zsh 5.1.1):

Same in 5.8.0.2

> efe() cat $1
> efe <(seq 1 10) | wc -l
> cat: /proc/self/fd/13: No such file or directory
> 0
>
> gives error, instead these all works fine:
> efe =(seq 1 10)| wc -l
> cat <(seq 1 10)| wc -l

This also works,
% efe <(seq 1 10) > >(wc -l)
as does this,
% wc -l < <(efe <(seq 1 10))

-- 
Mikael Magnusson



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