Keychain ends up spawning a new ssh-agent when there is already one there. Although I've specified --noinherit to avoid it grabbing whatever is in the environment I understand it should use the current keychain managed ssh-agent.
Setting -Q avoids this problem but AIUI that won't spawn ssh-agent if there isn't one running.
I'm not sure if this is a bug or just my misunderstanding of the options. If I execute:
Keychain ends up spawning a new ssh-agent when there is already one there. Although I've specified --noinherit to avoid it grabbing whatever is in the environment I understand it should use the current keychain managed ssh-agent.
Setting -Q avoids this problem but AIUI that won't spawn ssh-agent if there isn't one running.