Skip to content

Commit 1324426

Browse files
authored
Merge pull request microsoft#201235 from microsoft/tyriar/201184
Don't clobber BASH_REMATCH in SI
2 parents 0603a46 + ea57932 commit 1324426

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ __vsc_precmd() {
217217

218218
__vsc_preexec() {
219219
__vsc_initialized=1
220-
if [[ ! "$BASH_COMMAND" =~ ^__vsc_prompt* ]]; then
220+
if [[ ! $BASH_COMMAND == __vsc_prompt* ]]; then
221221
# Use history if it's available to verify the command as BASH_COMMAND comes in with aliases
222222
# resolved
223223
if [ "$__vsc_history_verify" = "1" ]; then

0 commit comments

Comments
 (0)