As reported here: https://bugs.launchpad.net/ubuntu/+source/keychain/+bug/38808 When I run keychain as follows, I still see "Identity added" output. eval `keychain -q --eval id_dsa` Reproducible: Always Steps to Reproduce:
I can't replicate this with version 2.6.8.
(In reply to comment #1) > I can't replicate this with version 2.6.8. > I couldn't at first either. It seems to only display Identity Added on the first run. Once your key is stored rerunning it does not produce the message.
OK, yes, I can reproduce this. But how exactly is this a bug? If you are being interactively prompted for your passphrase, I think you should have some kind of confirmation afterwards that it was added correctly. If you enter a bad passphrase, you will also be informed and prompted again.
This is a bug because the script has been told to be quiet and it isn't. My key has no passphrase. For keys that do, the general trend for Unix tools is to be silent on success, only printing on failure. Whether or not that's the default for keychain, it seems like a good behavior for keychain -q.
Richard, thanks for the input on this. I will look into optimizing this for situations where private keys are not encrypted.
OK, I should be able to get this in 2.6.10 (out soon)
In this commit: http://github.com/funtoo/keychain/commit/cc77b4b10f9fd8a940655a410bd3dda9f8b65af6
2.7.0 is in the tree. thx