GNUPG CLI endless loop when using --batch and --decrypt on detached signature file

Harakiri harakiri_23 at yahoo.com
Thu Apr 23 16:49:12 CEST 2009





--- On Thu, 4/23/09, Werner Koch <wk at gnupg.org> wrote:

> 
> There is and has always been a nul device in Windows, it is
> just named
> "/dev/nul" and not "/dev/null". 
> However on the windows command line you
> better use just "nul" as the device - that is a
> special filename.
> 

See, and this is exactly the reason why there should be an option to gnupg like --notty with --nostdin to make a generic for every platform - the caller does not really need to know about these OS specifics. He is using "--batch" as the name implies - it should be done automatically always - now i have to make a workaround because

a) GNUPG does not inform the caller via status-fd that its a detached signature and halts the processing
b) GNUPG needs "--batch" on "some" occasions to be really "batch mode" compatbile (this is undocumented and should be a flag)
c) Since i do not know in advance if it is an encrypted or detached signature file (no status output) - i may need to pipe the passphrase too - but with stdin to dev/null - i cant anymore




      



More information about the Gnupg-users mailing list