extglob-match () { sh-spec spec/extglob-match.test.sh $BASH $MKSH $OSH_LIST "$@" }
spec test index / oilshell.org
76 passed, 4 OK, 3 not implemented, 4 BUG, 0 failed, 0 timeouts, 0 cases skipped
mksh | 2 extglob in variable stdout: FALSE FALSE FALSEstderr: mksh: <stdin>[1]: shopt: not found |
osh | 2 extglob in variable stdout: stderr: g=--@(help|verbose) ^~ [ stdin ]:3: fatal: extended glob not allowed in this word |
mksh | 4 nested @() stdout: FALSEstderr: mksh: <stdin>[1]: shopt: not found |
mksh | 21 Turning extglob on changes the meaning of [[ !(str) ]] in bash stdout: TRUE TRUE TRUEstderr: mksh: <stdin>[5]: shopt: not found |
osh | 21 Turning extglob on changes the meaning of [[ !(str) ]] in bash stdout: stderr: [[ !($empty) ]] && echo TRUE # test if $empty is empty ^~ [ stdin ]:3: fatal: extended glob not allowed in this word |
mksh | 23 extglob inside arg word stdout: TRUE FALSEstderr: mksh: <stdin>[1]: shopt: not found |
osh | 23 extglob inside arg word stdout: TRUEstderr: [[ foo == ${unset:-@(foo|bar)} ]] && echo TRUE ^~ [ stdin ]:3: fatal: Extended glob not allowed in this word |
mksh | 24 extglob is not detected in regex! stdout: stderr: mksh: <stdin>[1]: shopt: not found mksh: <stdin>[2]: syntax error: '=~' unexpected operator/operand |
mksh | 25 regular glob of single unicode char stdout: 0 1stderr: mksh: <stdin>[1]: shopt: not found |
mksh | 26 extended glob of single unicode char stdout: 0 1stderr: mksh: <stdin>[1]: shopt: not found |
osh | 27 Extended glob in ${x//pat/replace} stdout: stderr: echo ${x//@(?.py)/Z} ^~ [ stdin ]:3: fatal: extended globs not supported in ${x//GLOB/} |