Fix shell wrapping for exes with space in path.

I experienced this using VS Code in WSL, the `code` CLI is in the
Windows `PATH` that has a space in my user name.

Fixes #294.
This commit is contained in:
Test User
2020-02-04 13:23:25 -05:00
parent 8f5693f345
commit 50ccfd9e97

View File

@@ -82,7 +82,7 @@ if [ "$shell_command_wrapping_enabled" = "true" ] || [ "$bash_command_wrapping_e
if [ "${scmbDebug:-}" = "true" ]; then echo "SCMB: $cmd is an executable file"; fi if [ "${scmbDebug:-}" = "true" ]; then echo "SCMB: $cmd is an executable file"; fi
# Otherwise, command is a regular script or binary, # Otherwise, command is a regular script or binary,
# and the full path can be found with 'find_binary' function # and the full path can be found with 'find_binary' function
alias $cmd="exec_scmb_expand_args $(find_binary $cmd)";; alias $cmd="exec_scmb_expand_args '$(find_binary $cmd)'";;
esac esac
done done
# Clean up # Clean up