2 msgSimple beginners questions about the gpg-smartcard
4 msgDetached signature that is not one
7 msgscript to clean my keyring

beginner to gnupg
\ bjr149 (29 Oct 2007)
. \ Sean Rima (30 Oct 2007)
. \ Ron Rogers Jr. (30 Oct 2007)
. \ Robert J. Hansen (30 Oct 2007)
. . \ Werner Koch (30 Oct 2007)

6 msgECC - how does it compare
1 msgsubscribe
1 msgRe: Key safety vs Backup
28 msgKey safety vs Backup : History of a bad day (ke...
2 msgGnuPG 1.4.7 and OS X 10.5
1 msg[Announce] Libgcrypt 1.3.1 released
4 msgMultiple recipients encryption
4 msgFor Mac users: the oncoming Mac OS X 10.5 'Leop...
3 msgPublic/Private Keys - Consequences
1 msggnupg refuses to work on a read-only filesystem
4 msgSeparate Fingerprint for elGamal-Subkey?
1 msgQuestion regarding libgcrypt and openSuse 10.3
3 msgRe: pinentry-mac never displays any UI [seems t...
3 msgQuestion about Replying to List
4 msgTrouble with keyservers
2 msgGnuPG doesn't handle filenames?
Subject:Re: beginner to gnupg
Group:Gnupg-users
From:Werner Koch
Date:30 Oct 2007


 
On Tue, 30 Oct 2007 15:40, rjh said:

> Note that it's "--armor --export", not "--export --armor". The former
> will work fine. The latter will try to export a key named "--armor",

That is not correct. The ordering of options and commands does not
matter. However mixing arguments ("key name") and options/commands does
not work as soon as the first non-option/command has been detected all
following items are considered arguments.

There is one caveat: If the first argument start with a dash it will be
viewed as an option. To avoid this the sepcial option "--" may be used
which explicitly declares that all waht follows are arguments.

Note that some options have option-arguments, e.g.

gpg -r Alice -r Bob --encrypt file.txt

Here Alice and Bob are arguments of the -r option. -r (or --recipient)
requires an option and thus gpg expects this. As an alternative you may
use

gpg --recipient=Alice --recipient=Bob --encrypt file.txt

And in scripts you would use

gpg --recipient=Alice --recipient=Bob --encrypt -- $FILE

so that you can even encrypt files with names like '--armor'.


Salam-Shalom,

Werner

--
Die Gedanken sind frei. Auschnahme regelt ein Bundeschgesetz.


_______________________________________________
Gnupg-users mailing list
Gnupg-users
http://lists.gnupg.org/mailman/listinfo/gnupg-users


© 2004-2008 readlist.com