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