Skip to content

Commit e885e5f

Browse files
authored
Merge pull request microsoft#208364 from nopeless/patch-1
fix: make `cmd` local in shell integration bash file
2 parents 609c11f + 22eb0cd commit e885e5f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ __vsc_prompt_cmd_original() {
275275
__vsc_restore_exit_code "${__vsc_status}"
276276
# Evaluate the original PROMPT_COMMAND similarly to how bash would normally
277277
# See https://unix.stackexchange.com/a/672843 for technique
278+
local cmd
278279
for cmd in "${__vsc_original_prompt_command[@]}"; do
279280
eval "${cmd:-}"
280281
done

0 commit comments

Comments
 (0)