Gitiles
Code Review
Sign In
gerrit.nordix.org
/
codeaurora
/
busybox
/
e7977df2cae2ac2c5da38f77488ec9e97d10c33b
/
.
/
shell
/
hush_test
/
hush-test2
/
strops2.tests
blob: ab325bc9f21872f95cc0efb2e834b5ac0cc4c98c [
file
] [
log
] [
blame
]
# malformed regex
[[
a
=~
*
]];
echo
1
:
ERR2
:
$
?
[[
a
/
b
=~
a
.
b
]];
echo
2
:
YES
:
$
?
[[
a
/
b
=~
/*b ]]; echo 3:YES:$?
v='[]b.-]'
[[ a/.b] =~ $v ]]; echo 4:YES:$?
v=']b.-'
[[ a/.b] =~ $v ]]; echo 5:no:$?
[[ a/.b] =~ [$v] ]]; echo 6:YES:$?