spec test index / oilshell.org
34 passed, 3 OK, 1 not implemented, 1 BUG, 15 failed, 0 timeouts, 0 cases skipped 15 failed under osh
| osh | 0 @() matches exactly one of the patterns [osh stdout] Expected 'bar.cc bar.h baz.h foo.cc foo.h\n', got '\n' stdout: stderr: |
| osh | 1 ?() matches 0 or 1 [osh stdout] Expected 'foo. foo.cc foo.h\n', got '\n' stdout: stderr: |
| osh | 2 *() matches 0 or more [osh stdout] Expected 'eg1/_ eg1/_One eg1/_OneOne eg1/_OneTwo eg1/_TwoTwo\n', got '\n' stdout: stderr: |
| osh | 3 +() matches 1 or more [osh stdout] Expected 'eg2/_One eg2/_OneOne eg2/_OneTwo eg2/_TwoTwo\n', got '\n' stdout: stderr: |
| osh | 4 !(*.h|*.cc) to match everything except C++ [osh stdout] Expected 'extglob2/bar.py extglob2/baz.py extglob2/foo.py\n', got '\n' stdout: stderr: |
| osh | 5 Two adjacent alternations [osh stdout] Expected '2/ab 2/ac 2/cb 2/cc\n2/ab 2/ac 2/bb 2/bc 2/cb 2/cc\n2/ab 2/ac\n', got '\n\n\n' stdout: stderr: |
| osh | 6 Nested extended glob pattern [osh stdout] Expected 'eg6/ab eg6/az\neg6/ac eg6/ad eg6/az\n', got '\n\n' stdout: stderr: |
| osh | 7 Extended glob patterns with spaces [osh stdout] Expected "['eg4/a b', 'eg4/foo']\n", got '[]\n' stdout: []stderr: |
| osh | 8 Filenames with spaces [osh stdout] Expected "['eg5/a bcd', 'eg5/a bde']\n", got '[]\n' stdout: []stderr: |
| mksh | 9 nullglob with extended glob stdout: ['eg6/@(no|matches)']stderr: mksh: <stdin>[1]: shopt: not found mksh: <stdin>[2]: shopt: not found mkdir: cannot create directory ‘eg6’: File exists |
| mksh | 10 glob other punctuation chars (lexer mode) stdout: ['__#', '__&&', '__<>', '__{}', '__|']
stderr: mksh: <stdin>[1]: shopt: not found |
| osh | 10 glob other punctuation chars (lexer mode) [osh stdout] Expected "['__<>', '__|', '__{}', '__&&', '__#']\n", got '[]\n' stdout: []stderr: |
| mksh | 11 dynamic extglob from variable stdout: eg3/@(foo|bar) eg3/@(foo|bar)stderr: mksh: <stdin>[1]: shopt: not found |
| osh | 11 dynamic extglob from variable [osh stdout] Expected 'eg3/bar eg3/foo eg3/@(foo|bar)\n', got 'eg3/@(foo|bar) eg3/@(foo|bar)\n' stdout: eg3/@(foo|bar) eg3/@(foo|bar)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) [osh stdout] Expected 'bar.py foo.py spam.py\nbar.py foo.py\n', got 'bar.py foo.py spam.py\n@(foo|bar).py\n' stdout: bar.py foo.py spam.py @(foo|bar).pystderr: |
| mksh | 14 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 same word as array [osh stdout] Expected "['a b', 'c']\n['star', 'glob', 'a b c.py']\n['star', 'extglob', 'a b c.cc', 'a b c.py']\n['at', 'extglob', 'a b', 'cee.cc', 'cee.py']\n", got "['a b', 'c']\n['star', 'glob', 'a b c.py']\n['star', 'extglob']\n['at', 'extglob']\n" stdout: ['a b', 'c'] ['star', 'glob', 'a b c.py'] ['star', 'extglob'] ['at', 'extglob']stderr: |
| osh | 16 Extended glob with word splitting [osh stdout] Expected "['a', 'bar.cc', 'bar.h']\n", got '[]\n' stdout: []stderr: |
| osh | 17 In Array Literal and for loop [osh stdout] Expected 'bar.py\nfoo.py\n---\nzzz bar.py foo.py\n', got '---\nzzz\n' stdout: --- zzzstderr: |