exit code?

Simon Josefsson jas at extundo.com
Sat Oct 11 03:11:47 CEST 2003


My gpg.conf does not contain 'use-agent'.  Older gpg used to return 0
on success, which some scripts trigger on.

Thanks.

jas at latte:~/src/gnupg/g10$ echo foo > foo
jas at latte:~/src/gnupg/g10$ ./gpg2 -a --sign foo
Secure memory is not locked into core
gpg: NOTE: THIS IS A DEVELOPMENT VERSION!
gpg: It is only intended for test purposes and should NOT be
gpg: used in a production environment or with production keys!
 
You need a passphrase to unlock the secret key for
user: "Simon Josefsson <jas at extundo.com>"
1280-bit RSA key, ID B565716F, created 2002-05-05
 
gpg: gpg-agent is not available in this session
jas at latte:~/src/gnupg/g10$ echo $?
2
jas at latte:~/src/gnupg/g10$ ./gpg2 --version
Secure memory is not locked into core
gpg (GnuPG) 1.9.2-cvs
Copyright (C) 2002 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.
 
Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, DSA, ELG
Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH
Hash: MD5, SHA1, RIPEMD160, TIGER192, SHA256, SHA384, SHA512
Compression: Uncompressed, ZIP, ZLIB
jas at latte:~/src/gnupg/g10$




More information about the Gnupg-devel mailing list