Fix eval'ing multiline sh-* command output with bash

This commit is contained in:
Mislav Marohnić 2015-10-12 01:31:57 +02:00
parent efb187f26f
commit 0f44c57d08

View file

@ -133,7 +133,7 @@ cat <<EOS
case "\$command" in
${commands[*]})
eval "\`rbenv "sh-\$command" "\$@"\`";;
eval "\$(rbenv "sh-\$command" "\$@")";;
*)
command rbenv "\$command" "\$@";;
esac