From b3fb00d5395ff178b2ee7a8e990a425bf9bff057 Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Wed, 8 Oct 2025 10:40:38 +0200 Subject: [PATCH] Fix keychain on (t)csh. I'm not 100% sure of the fix because I'm not 100% sure of the intent. I feel like it's correct though, it's how one is supposed to bring the agent env variables in the current shell in all the rest of the code it seems. Fixes #185 --- keychain.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keychain.sh b/keychain.sh index 9dae7d3..2f07366 100755 --- a/keychain.sh +++ b/keychain.sh @@ -995,7 +995,7 @@ elif [ "$myaction" = ssh_rm ]; then else # This will start gpg-agent as an ssh-agent if such functionality is enabled (default) startagent_ssh || warn "Unable to start an ssh-agent (error code: $?)" - [ -n "$pidfile_out" ] && write_pidfile && eval "$pidfile_out" > /dev/null + [ -n "$pidfile_out" ] && write_pidfile && eval "$(catpidf_shell sh)" > /dev/null if ! $gpg_started && wantagent gpg; then # If we also want gpg, and it hasn't been started yet, start it also. We don't need to # look for pidfile output, as this would have been output from the startagent_ssh->startagent_gpg