extglob-files () { run-file extglob-files "$@" } run-file () { local spec_name=$1; shift; sh-spec spec/$spec_name.test.sh --compare-shells --oils-bin-dir $PWD/bin "$@" }
spec test index / oilshell.org
58 passed, 4 OK, 5 not implemented, 1 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
mksh | 9 nullglob with extended glob stdout: ['eg6/@(no|matches)'] ['eg6/@(no|matches)']stderr: mksh: <stdin>[1]: shopt: not found mksh: <stdin>[4]: shopt: not found |
osh | 12 Escaping of pipe (glibc bug, see demo/glibc_fnmatch.c) [osh stdout] Expected "['__|', 'foo']\n['__|', 'foo']\n", got "['foo']\n['foo']\n" stdout: ['foo'] ['foo']stderr: |
mksh | 13 Extended glob as argument to ${undef:-} (dynamic globbing) stdout: bar.py foo.py spam.py @(foo|bar).pystderr: mksh: <stdin>[1]: shopt: not found |
osh | 13 Extended glob as argument to ${undef:-} (dynamic globbing) stdout: bar.py foo.py spam.pystderr: echo ${undef:-@(foo|bar).py} ^~ [ stdin ]:9: fatal: Extended glob not allowed in this word |
mksh | 14 Extended glob in assignment builtin stdout: status=1stderr: mksh: <stdin>[1]: shopt: not found mksh: <stdin>[5]: typeset: -@: unknown option |
osh | 14 Extended glob in assignment builtin stdout: stderr: typeset -@(*.py) myvar ^ [ stdin ]:5: fatal: Extended glob not allowed in this word |
osh | 15 Extended glob in same word as array stdout: ['a b', 'c'] ['star', 'glob', 'a b c.py'] ['star', 'extglob', 'a b c.cc', 'a b c.py']stderr: argv.py at extglob "$@"*@(.py|cc) ^ [ stdin ]:13: fatal: Extended globs and arrays can't appear in the same word |
osh | 16 Extended glob with word splitting stdout: ['a b*.@(cc|h)']stderr: |
bash | 20 dashglob stdout: -dash bar foo -dash bar foostderr: bash: line 8: shopt: dashglob: invalid shell option name |
mksh | 20 dashglob stdout: -dash bar foo -dash bar foostderr: mksh: <stdin>[1]: shopt: not found mksh: <stdin>[8]: shopt: not found |
mksh | 22 failglob stdout: @(*) status=0 foo status=0stderr: mksh: <stdin>[1]: shopt: not found mksh: <stdin>[7]: shopt: not found |