mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
Merge pull request #208364 from nopeless/patch-1
fix: make `cmd` local in shell integration bash file
This commit is contained in:
commit
e885e5fd9f
|
@ -275,6 +275,7 @@ __vsc_prompt_cmd_original() {
|
||||||
__vsc_restore_exit_code "${__vsc_status}"
|
__vsc_restore_exit_code "${__vsc_status}"
|
||||||
# Evaluate the original PROMPT_COMMAND similarly to how bash would normally
|
# Evaluate the original PROMPT_COMMAND similarly to how bash would normally
|
||||||
# See https://unix.stackexchange.com/a/672843 for technique
|
# See https://unix.stackexchange.com/a/672843 for technique
|
||||||
|
local cmd
|
||||||
for cmd in "${__vsc_original_prompt_command[@]}"; do
|
for cmd in "${__vsc_original_prompt_command[@]}"; do
|
||||||
eval "${cmd:-}"
|
eval "${cmd:-}"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue