summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2011-12-07 09:04:35 -0500
committerChet Ramey <chet.ramey@case.edu>2011-12-07 09:04:35 -0500
commit6ec48275ead1ddc961c08c9d450fe3c807182c8e (patch)
tree406d955a1d85d0451420c3c76e92b866ae997847 /tests
parentb5fabbae5cded9747259fa0b154a5d0729899d62 (diff)
downloadbash-6ec48275ead1ddc961c08c9d450fe3c807182c8e.tar.gz
commit bash-20070308 snapshot
Diffstat (limited to 'tests')
-rw-r--r--tests/cond-regexp.sub8
-rw-r--r--tests/cond.right3
2 files changed, 10 insertions, 1 deletions
diff --git a/tests/cond-regexp.sub b/tests/cond-regexp.sub
index 2d3bfe71..724957dd 100644
--- a/tests/cond-regexp.sub
+++ b/tests/cond-regexp.sub
@@ -33,4 +33,10 @@ then
fi
[[ $REPAT =~ "$REPAT" ]] && echo rematch 1
-
+
+v="one two buckle my shoe"
+[[ ${v} =~ "one two" ]] && echo matches 7
+
+[[ ${v} =~ (one two) ]] && echo matches 8
+
+[[ ${v} =~ one\ two ]] && echo matches 9
diff --git a/tests/cond.right b/tests/cond.right
index 999de18e..39fac2fc 100644
--- a/tests/cond.right
+++ b/tests/cond.right
@@ -55,3 +55,6 @@ yes 6
Dog 01 is Wiggles
Dog 01 is Wiggles
rematch 1
+matches 7
+matches 8
+matches 9