aboutsummaryrefslogtreecommitdiff
path: root/share/examples/csh
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2012-05-15 20:15:17 +0000
committerEitan Adler <eadler@FreeBSD.org>2012-05-15 20:15:17 +0000
commit06c34e294a331c53e66051c942ab832746800011 (patch)
tree81b256dfc8a97ded99f5957a50183f39dc66005f /share/examples/csh
parent5e1ba35cea06bf6884fc699f98d737f8dc140f61 (diff)
Notes
Diffstat (limited to 'share/examples/csh')
-rw-r--r--share/examples/csh/dot.cshrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/examples/csh/dot.cshrc b/share/examples/csh/dot.cshrc
index 17951d4c4197..175bfd20e414 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