Results for extglob-match.test.sh

statusbashmkshosh
pass 241923
ok 011
N-I 020
BUG 020
total242424
casebashmkshoshdescription
0pass pass pass @ matches exactly one
1pass pass pass @() with variable arms
2pass N-I pass extglob in variable
details
3pass BUG pass nested @()
details
4pass pass pass nested @() with quotes and vars
5pass pass pass ? matches 0 or 1
6pass pass pass + matches 1 or more
7pass pass pass * matches 0 or more
8pass pass pass simple repetition with *(foo) and +(Foo)
9pass pass pass ! matches none
10pass pass pass match is anchored
11pass pass pass repeated match is anchored
12pass pass pass repetition with glob
13pass pass pass No brace expansion in ==
14pass pass pass adjacent extglob
15pass pass pass nested extglob
16pass pass pass extglob empty string
17pass pass pass extglob empty pattern
18pass pass pass case with extglob
19pass pass pass Without shopt -s extglob
20pass ok ok Turning extglob on changes the meaning of [[ !(str) ]] in bash
detailsdetails
21pass pass pass With extglob on, !($str) on the left or right of == has different meanings
22pass BUG pass extglob inside arg word
details
23pass N-I pass extglob is not detected in regex!
details
66 passed, 2 OK, 2 not implemented, 2 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

mksh2 extglob in variable

stdout:
FALSE
FALSE
FALSE
stderr:
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: shopt: not found
mksh3 nested @()

stdout:
FALSE
stderr:
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: shopt: not found
mksh20 Turning extglob on changes the meaning of [[ !(str) ]] in bash

stdout:
TRUE
TRUE
TRUE
stderr:
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[5]: shopt: not found
osh20 Turning extglob on changes the meaning of [[ !(str) ]] in bash

stdout:
TRUE
TRUE
TRUE
stderr:
mksh22 extglob inside arg word

stdout:
TRUE
FALSE
stderr:
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: shopt: not found
mksh23 extglob is not detected in regex!

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: shopt: not found
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: syntax error: '=~' unexpected operator/operand