help-bash
[Top][All Lists]
Advanced

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

Re: Process substitution documentation request


From: Greg Wooledge
Subject: Re: Process substitution documentation request
Date: Wed, 24 Jun 2026 08:22:44 -0400
User-agent: Mutt/1.10.1 (2018-07-13)

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 ...)'



reply via email to

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