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/