summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/lib/completions/ant.exp1
-rw-r--r--test/lib/library.sh2
2 files changed, 2 insertions, 1 deletions
diff --git a/test/lib/completions/ant.exp b/test/lib/completions/ant.exp
index a5f022ac..acff23ec 100644
--- a/test/lib/completions/ant.exp
+++ b/test/lib/completions/ant.exp
@@ -6,7 +6,6 @@ proc setup {} {
proc teardown {} {
assert_env_unmodified {
/OLDPWD=/d
- /BASH_REMATCH=/d
}
}
diff --git a/test/lib/library.sh b/test/lib/library.sh
index 90ecdf9e..290ec813 100644
--- a/test/lib/library.sh
+++ b/test/lib/library.sh
@@ -22,6 +22,8 @@ diff_env() {
/[<>] _=/d
# Remove PPID bash variable
/[<>] PPID=/d
+# Remove BASH_REMATCH bash variable
+ /[<>] BASH_REMATCH=/d
$3"
} # diff_env()