From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Mikael Magnusson <mikachu@gmail.com>
Cc: Pier Paolo Grassi <pierpaolog@gmail.com>,
Zsh-Users List <zsh-users@zsh.org>
Subject: Re: subprocess
Date: Sat, 6 Jun 2020 01:00:18 +0000 [thread overview]
Message-ID: <20200606010018.5d9c4a33@tarpaulin.shahaf.local2> (raw)
In-Reply-To: <CAHYJk3SLwb1f1o9Ow1otbYDH1epXBz0=1Lr6B-tJtoGDGQEWXQ@mail.gmail.com>
Mikael Magnusson wrote on Fri, 05 Jun 2020 12:25 +0200:
> On 6/5/20, Pier Paolo Grassi <pierpaolog@gmail.com> 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
next prev parent reply other threads:[~2020-06-06 1:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-05 2:03 subprocess Pier Paolo Grassi
2020-06-05 10:25 ` subprocess Mikael Magnusson
2020-06-06 1:00 ` Daniel Shahaf [this message]
2020-06-06 18:19 ` subprocess Bart Schaefer
2020-06-06 19:53 ` subprocess Peter Stephenson
2020-06-08 19:55 ` subprocess Peter Stephenson
2020-06-08 14:22 ` subprocess Pier Paolo Grassi
2020-06-08 21:32 ` subprocess Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200606010018.5d9c4a33@tarpaulin.shahaf.local2 \
--to=d.s@daniel.shahaf.name \
--cc=mikachu@gmail.com \
--cc=pierpaolog@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).