Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11701

Re: Design question(s), re: why use of tmp-files or named-pipes(/dev/fd/N) instead of plain pipes?

Path csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Stephane Chazelas <stephane.chazelas@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: Design question(s), re: why use of tmp-files or named-pipes(/dev/fd/N) instead of plain pipes?
Date Mon, 19 Oct 2015 11:04:58 +0100
Lines 32
Approved bug-bash@gnu.org
Message-ID <mailman.624.1445249112.7904.bug-bash@gnu.org> (permalink)
References <56218DA5.8030501@tlinx.org> <5622CDC8.2030102@case.edu> <5622EB23.6020700@tlinx.org> <56242D11.3050106@case.edu>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Trace usenet.stanford.edu 1445249112 8076 208.118.235.17 (19 Oct 2015 10:05:12 GMT)
X-Complaints-To action@cs.stanford.edu
Cc Linda Walsh <bash@tlinx.org>, bug-bash <bug-bash@gnu.org>
To Chet Ramey <chet.ramey@case.edu>
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=UFqU1bcyxnkbI634Bbu6mi3ITlNJGx/3tgZZT3hB+FQ=; b=HNN6r9Jj6fw7OfBu+aJRJAVszjBiI8uvQrwa4AeG0NBf1olBUkDNyVlWDrFmUK8dX6 sMX9yYkhjVak3xwsCZj20RX6HNZ0nQrMnYXtvIefDvr2zkej7TsWgtpnHcHuHPG3HlUE tKlljbyRfq2YOvNwySYcUN0ST50TOPxuyeKe4p9Rn7K4PlFmRhAo7U9biVDj4BCrizFf JmhmnBJk5ER5zwFyWJGPHRMn9C32njMaXR5zUJKqOa1Xf4Mmsm2MAPD9kvR25yviKQoI ySBRK/+aqvLA/worXcIONLG7Tcw0D8t5bc7Do96tvFiDw5DJ5R6zMosl4HV+2SPGuo1+ d8qw==
X-Received by 10.180.87.71 with SMTP id v7mr11309835wiz.77.1445249100338; Mon, 19 Oct 2015 03:05:00 -0700 (PDT)
Content-Disposition inline
In-Reply-To <56242D11.3050106@case.edu>
User-Agent Mutt/1.5.21 (2010-09-15)
X-detected-operating-system by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value).
X-Received-From 2a00:1450:4010:c07::22e
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.14
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:11701

Show key headers only | View raw


2015-10-18 19:36:49 -0400, Chet Ramey:
> On 10/17/15 8:43 PM, Linda Walsh wrote:
[...]
> >     ??? I've never seen a usage where it expands to a filename and
> > is treated as such.
> 
> Every example of process substitution ever given expands to a filename,
> and the result is treated as a filename.
[...]

Possibly (though unlikely) the confusion comes from the yash
shell where <(...), >(...) are for process *redirection* instead
of process *substitution*.

In yash.

ls >(process-stdout-cmd) 2>(process-stderr-cmd)

Does run those process-stdout-cmd and process-stderr-cmd
commands in background and ls's stdout and stderr are pipes to
their input.

See

http://unix.stackexchange.com/a/208133
http://unix.stackexchange.com/a/86372

for some more details and example usage.

-- 
Stephane

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Design question(s), re: why use of tmp-files or named-pipes(/dev/fd/N) instead of plain pipes? Stephane Chazelas <stephane.chazelas@gmail.com> - 2015-10-19 11:04 +0100

csiph-web