help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Process substitution documentation request


From: Chet Ramey
Subject: Re: Process substitution documentation request
Date: Wed, 24 Jun 2026 17:40:50 -0400
User-agent: Mozilla Thunderbird

On 6/24/26 8:12 AM, Zachary Santer wrote:
On Wed, Jun 24, 2026 at 7:22 AM Greg Wooledge <greg@wooledge.org> wrote:

You're right -- sudo does break this (at least on Linux).  It might
work as expected on platforms where process substitution uses a named
pipe.

Speaking of named pipes, those work fine (with diff!) if they're
explicitly created:

There could be a shopt option to force process substitutions to use
named pipes even on systems that support /dev/fd/n.

/dev/fd is a superior solution: it's lighter-weight, doesn't touch the
file system, and doesn't require object cleanup.

But if you want to do this, you can build bash after commenting out the
HAVE_DEV_FD #define in config.h.


Not that this
seems to come up a lot, but the process substitution syntax is nicer
to look at.

Nicer than what? Using explicit named pipes?

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]