From 50ccfd9e971320f5ee70ba60ac746ec5a8ae094c Mon Sep 17 00:00:00 2001 From: Test User Date: Tue, 4 Feb 2020 13:23:25 -0500 Subject: [PATCH] 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. --- 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 54f79ce..6a068c2 100644 --- a/lib/git/shell_shortcuts.sh +++ b/lib/git/shell_shortcuts.sh @@ -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 # Otherwise, command is a regular script or binary, # 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 done # Clean up