#1059771 gpg: --batch has no effect

Package:
gpg
Source:
gpg
Description:
GNU Privacy Guard -- minimalist public key operations
Submitter:
Vincent Lefevre
Date:
2025-03-05 19:33:02 UTC
Severity:
normal
#1059771#5
Date:
2023-12-31 17:55:10 UTC
From:
To:
When I run "gpg --batch -d file.gpg < /dev/null", I'm still asked
for a passphrase, while the gpg(1) man page says for this option:

  Use batch mode. Never ask, do not allow interactive commands.

#1059771#10
Date:
2023-12-31 18:15:49 UTC
From:
To:
I've eventually found that "--pinentry-mode error" (or
"--pinentry-mode cancel") allows me to avoid this issue.

I suppose that --batch should set the pinentry mode to "error"
so that it behaves as documented.