aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-07-31 17:39:50 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-07-31 17:39:50 +1200
commitc331dc4a81b1fae6995f610c72b542caebd099da (patch)
treef9bd09ffb990ae3685789171dbea8d56e3dbc3f4
parentKeep export calls separate from definitions (diff)
downloaddotfiles-c331dc4a81b1fae6995f610c72b542caebd099da.tar.gz
dotfiles-c331dc4a81b1fae6995f610c72b542caebd099da.zip
Don't use backticks for command substitution
I thought the $( ) syntax wasn't defined by POSIX, but it is, and it works in basically every modern Bourne shell including dash and ksh. As it's much more readable and easier to nest I'll prefer it here.
-rw-r--r--sh/profile.d/keychain.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/profile.d/keychain.sh b/sh/profile.d/keychain.sh
index 43d81781..01fe8711 100644
--- a/sh/profile.d/keychain.sh
+++ b/sh/profile.d/keychain.sh
@@ -1,9 +1,9 @@
# Keychain
if command -v ssh-askpass >/dev/null; then
- SSH_ASKPASS=`which ssh-askpass`
+ SSH_ASKPASS=$(which ssh-askpass)
export SSH_ASKPASS
fi
if command -v keychain >/dev/null; then
- eval `keychain --eval --ignore-missing --quiet id_dsa id_rsa id_ecsda`
+ eval $(keychain --eval --ignore-missing --quiet id_dsa id_rsa id_ecsda)
fi