Skip to content

Commit

Permalink
ts: escape shell text output for regexp enabled tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xdelaruelle committed Feb 27, 2023
1 parent 6864d24 commit 4bf77a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions testsuite/config/base-config.exp
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,11 @@ proc shell_text {test_shell val {re_mode 0}} {
}
}

if {$re_mode} {
# over escape regexp-special characters
set answer [regsub -all {([$.+?*\\()&|])} $answer {\\\1}]
}

return $answer
}

Expand Down

0 comments on commit 4bf77a0

Please sign in to comment.