On Wed, Jun 24, 2026 at 08:12:51 -0400, Zachary Santer wrote:
> 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.
If it's easy to implement, sure. I don't think the demand is very high,
so it would come down to whether it's worth Chet's time to add it and
maintain it.
> > 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?
The original command used a combination of cryptsetup and gpg, IIRC.
I would guess that the gpg part needs to run as the non-privileged
user. Otherwise, I would have suggested something like
sudo bash -c 'cryptsetup ... <(gpg ...)'