blob: ab325bc9f21872f95cc0efb2e834b5ac0cc4c98c [file] [log] [blame]
Denys Vlasenkod2241f52020-10-31 03:34:07 +01001# malformed regex
2[[ a =~ * ]]; echo 1:ERR2:$?
3
4[[ a/b =~ a.b ]]; echo 2:YES:$?
5[[ a/b =~ /*b ]]; echo 3:YES:$?
6
7v='[]b.-]'
8[[ a/.b] =~ $v ]]; echo 4:YES:$?
9
10v=']b.-'
11[[ a/.b] =~ $v ]]; echo 5:no:$?
12[[ a/.b] =~ [$v] ]]; echo 6:YES:$?