From c331dc4a81b1fae6995f610c72b542caebd099da Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 31 Jul 2013 17:39:50 +1200 Subject: 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. --- sh/profile.d/keychain.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sh') 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 -- cgit v1.2.3