diff options
-rw-r--r-- | share/examples/csh/dot.cshrc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/examples/csh/dot.cshrc b/share/examples/csh/dot.cshrc index 17951d4..175bfd2 100644 --- a/share/examples/csh/dot.cshrc +++ b/share/examples/csh/dot.cshrc @@ -5,7 +5,7 @@ # Sets SSH_AUTH_SOCK to the user's ssh-agent socket path if running if (${?SSH_AUTH_SOCK} != "1") then - setenv SSH_AUTH_SOCK `sockstat | grep "${USER}" | cut -d ' ' -f 6` + setenv SSH_AUTH_SOCK `sockstat | grep "^${USER} " | awk '/ssh-agent/ { print $6 }'` endif # Change only root's prompt |