mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-08 14:59:08 +01:00
Merge pull request #208364 from nopeless/patch-1
fix: make `cmd` local in shell integration bash file
This commit is contained in:
@@ -275,6 +275,7 @@ __vsc_prompt_cmd_original() {
|
||||
__vsc_restore_exit_code "${__vsc_status}"
|
||||
# Evaluate the original PROMPT_COMMAND similarly to how bash would normally
|
||||
# See https://unix.stackexchange.com/a/672843 for technique
|
||||
local cmd
|
||||
for cmd in "${__vsc_original_prompt_command[@]}"; do
|
||||
eval "${cmd:-}"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user