From 3cebcb3876772fd0098ae857d60a3dbdaea65964 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Tue, 21 Aug 2012 14:30:14 +1200 Subject: [PATCH] Fix zsh variable expansion issue --- lib/git/shell_shortcuts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git/shell_shortcuts.sh b/lib/git/shell_shortcuts.sh index dd38106..513d925 100644 --- a/lib/git/shell_shortcuts.sh +++ b/lib/git/shell_shortcuts.sh @@ -13,7 +13,7 @@ if [ "$shell_command_wrapping_enabled" = "true" ] || [ "$bash_command_wrapping_e # Define 'whence' for bash, to get the value of an alias type whence > /dev/null 2>&1 || function whence() { type "$@" | sed -e "s/.*is aliased to \`//" -e "s/'$//"; } local cmd='' - for cmd in $scmb_wrapped_shell_commands; do + for cmd in $(echo $scmb_wrapped_shell_commands); do if [ "${scmbDebug:-}" = "true" ]; then echo "SCMB: Wrapping $cmd..."; fi case "$(type $cmd 2>&1)" in