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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user