spec test index / oilshell.org
78 passed, 8 OK, 7 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 mkdir: cannot create directory ‘eg6’: File exists 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: |
osh_ALT | 12 Escaping of pipe (glibc bug, see demo/glibc_fnmatch.c) [osh_ALT stdout] Expected "['__|', 'foo']\n['__|', 'foo']\n", got "['foo']\n['foo']\n" stdout: ['foo'] ['foo']stderr: |
osh | 13 Extended glob syntax in bad redirect context stdout: stderr: echo foo > bad_@(*.cc|*.h) ^~~~ [ stdin ]:4: fatal: extended glob not allowed in this word |
osh_ALT | 13 Extended glob syntax in bad redirect context stdout: stderr: rm: cannot remove 'bad_*': No such file or directory echo foo > bad_@(*.cc|*.h) ^~~~ [ stdin ]:4: fatal: extended glob not allowed in this word |
mksh | 14 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 | 14 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 |
osh_ALT | 14 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 | 15 Extended glob in assignment builtin stdout: status=1stderr: mksh: <stdin>[1]: shopt: not found mksh: <stdin>[5]: typeset: -@: unknown option |
osh | 15 Extended glob in assignment builtin stdout: stderr: typeset -@(*.py) myvar ^ [ stdin ]:5: fatal: Extended glob not allowed in this word |
osh_ALT | 15 Extended glob in assignment builtin stdout: stderr: typeset -@(*.py) myvar ^ [ stdin ]:5: fatal: Extended glob not allowed in this word |
osh | 16 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_ALT | 16 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 | 17 Extended glob with word splitting stdout: ['a b*.@(cc|h)']stderr: |
osh_ALT | 17 Extended glob with word splitting stdout: ['a b*.@(cc|h)']stderr: |
bash | 21 dashglob stdout: -dash bar foo -dash bar foostderr: bash: line 8: shopt: dashglob: invalid shell option name |
mksh | 21 dashglob stdout: -dash bar foo -dash bar foostderr: mksh: <stdin>[1]: shopt: not found mksh: <stdin>[8]: shopt: not found |
mksh | 23 failglob stdout: @(*) status=0 foo status=0stderr: mksh: <stdin>[1]: shopt: not found mksh: <stdin>[7]: shopt: not found |