[pkg-gnupg-maint] Bug#1059771: gpg: --batch has no effect

Vincent Lefevre vincent at vinc17.net
Sun Dec 31 18:15:49 GMT 2023


On 2023-12-31 18:55:10 +0100, Vincent Lefevre wrote:
> 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.

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.

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



More information about the pkg-gnupg-maint mailing list