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. Not that this
seems to come up a lot, but the process substitution syntax is nicer
to look at.
> I don't know whether this would work with cryptsetup. If you never
> tested cryptsetup with procsubs *without* sudo, then you don't know
> either.
Correct me if I'm wrong, but you could do this by su'ing to root
before running the command, right?