--batch switch not always preventing questions

Werner Koch wk@gnupg.org
Fri Jan 10 10:30:02 2003


On 09 Jan 2003 12:14:15 -0800, Knut Forkalsrud said:

>   gpg --decrypt --batch --yes nope2.msg

Either 

  gpg --decrypt --batch --yes nope2.msg  nope2.data

or 

  gpg --decrypt --batch --yes nope2.msg  < nope2.data

If a detached signature is not expected you can simply force an error by

  gpg --decrypt --batch --yes nope2.msg  < /dev/null

In general it is always good to connect stdin with /dev/null in an
automated environment.


Shalom-Salam,

   Werner