Merge pull request #201235 from microsoft/tyriar/201184

Don't clobber BASH_REMATCH in SI
This commit is contained in:
Daniel Imms 2023-12-19 10:22:51 -08:00 committed by GitHub
commit 1324426117
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -217,7 +217,7 @@ __vsc_precmd() {
__vsc_preexec() {
__vsc_initialized=1
if [[ ! "$BASH_COMMAND" =~ ^__vsc_prompt* ]]; then
if [[ ! $BASH_COMMAND == __vsc_prompt* ]]; then
# Use history if it's available to verify the command as BASH_COMMAND comes in with aliases
# resolved
if [ "$__vsc_history_verify" = "1" ]; then