GnuPG doesn't handle filenames?

Werner Koch wk at
Fri Oct 12 21:30:51 CEST 2007

On Fri, 12 Oct 2007 13:06, email at said:

>> D:\Sven>gpg --clearsign test.txt
>> usage: gpg [options] --clearsign [filename]

There is a bug in some versions of gpg4win.  The gpg you use is actually
a wrapper which invokes the real gpg.  We do this to selective add only
required programs to the PATH.  Use

  gpg --version --version

to see the real filename of gpg; for example:

  C:\tmp>gpg --version --version
  gpgwrap (Gpg4win) 1.9.0-svn558 ;C:\Programme\GNU\GnuPG\gpg.exe
  gpg (GnuPG) 1.4.7
  Copyright (C) 2006 Free Software Foundation, Inc.

So either update gpg4win or use

  C:\Progamme\GNU\GnuPG\gpg --clearsign test.txt

or wherever the real binary is installed.  Note that gpg4win 1.9 is
development only and should not be used.  The bug is fixed since 1.1.2.



Die Gedanken sind frei.  Auschnahme regelt ein Bundeschgesetz.

More information about the Gnupg-users mailing list