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

Re: subprocess



Mikael Magnusson wrote on Fri, 05 Jun 2020 12:25 +0200:
> 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))

And this,

% () { cat $1 } <(seq 1 10) | wc -l



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