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

Re: subprocess



On Sat, 2020-06-06 at 20:53 +0100, Peter Stephenson wrote:
> On Sat, 2020-06-06 at 11:19 -0700, Bart Schaefer wrote:
> > On Fri, Jun 5, 2020 at 6:01 PM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> > > > On 6/5/20, Pier Paolo Grassi <pierpaolog@xxxxxxxxx> wrote:
> > > > > efe() cat $1
> > > > > efe <(seq 1 10) | wc -l
> > > > > cat: /proc/self/fd/13: No such file or directory
> > 
> > A named function on the left side of a pipeline becomes its own "job",
> > where all descriptors above 10 are closed.
> 
> Itʼs this call here.
> 
> How ahout simply reordering so we tidy up after the function is called?
> That fixes the problem, hard to see how that can cause a leak...?

I've taken the silence for lack of controversy rather than stupefaction
and submitted this.

(For workers: I will assume the same for the CLOBBER_EMPTY change
tomorrow.  I already have a reply from Daniel.)

pws



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