gnupg fails to fail in the following scenario: neal at bassanio:~ (0)$ gpg --recv-key foo gpg: foo: not a valid key ID neal at bassanio:~ (0)$ (the number in parenthesis is the error code.) Gnupg should, in this case, return non-zero. Thanks.