diff options
| author | Eitan Adler <eadler@FreeBSD.org> | 2012-05-15 20:15:17 +0000 |
|---|---|---|
| committer | Eitan Adler <eadler@FreeBSD.org> | 2012-05-15 20:15:17 +0000 |
| commit | 06c34e294a331c53e66051c942ab832746800011 (patch) | |
| tree | 81b256dfc8a97ded99f5957a50183f39dc66005f /share/examples/csh | |
| parent | 5e1ba35cea06bf6884fc699f98d737f8dc140f61 (diff) | |
Notes
Diffstat (limited to 'share/examples/csh')
| -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 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 |
