On Thu, Feb 12, 2026 at 06:02:59PM +0100, Daniel Lange wrote:
The /dev/tty handling in gpg has bitten some people since about a decade or so.
The corresponding GPG_TTY variable is documented at
https://www.gnupg.org/documentation/manuals/gnupg/Invoking-GPG_002dAGENT.html
and you use it yourself in your initial email.
The above recommends to add
GPG_TTY=$(tty)
export GPG_TTY
to .bashrc.
If you do that, the normal cat ... | gpg --whatever should work for you, too.
How many people are going to need that? If it's harmless, it should be
part of the docs.
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421