spec test index / oilshell.org
192 passed, 2 OK, 33 not implemented, 11 BUG, 4 failed, 0 timeouts, 0 cases skipped 4 failed under osh
dash | 13 store literal globs in array then expand stdout: stderr: dash: 2: Syntax error: "(" unexpected |
ash | 13 store literal globs in array then expand stdout: stderr: ash: syntax error: unexpected "(" |
dash | 14 glob inside array stdout: stderr: dash: 2: Syntax error: "(" unexpected |
ash | 14 glob inside array stdout: stderr: ash: syntax error: unexpected "(" |
mksh | 16 glob with char class expression stdout: _tmp/*.[[:punct:]E]stderr: |
mksh | 19 : escaped stdout: _tmp/*.[[:punct:]] _tmp/*.[[:punct:]]stderr: |
ash | 19 : escaped stdout: _tmp/foo.- _tmp/foo.-stderr: |
bash | 20 Redirect to glob, not evaluated stdout: stderr: cat: '_tmp/*.F': No such file or directory |
dash | 26 shopt -s nullglob stdout: ['_tmp/spec-tmp/*.nonexistent'] ['_tmp/spec-tmp/*.nonexistent']stderr: dash: 2: shopt: not found |
mksh | 26 shopt -s nullglob stdout: ['_tmp/spec-tmp/*.nonexistent'] ['_tmp/spec-tmp/*.nonexistent']stderr: mksh: <stdin>[2]: shopt: not found |
ash | 26 shopt -s nullglob stdout: ['_tmp/spec-tmp/*.nonexistent'] ['_tmp/spec-tmp/*.nonexistent']stderr: ash: shopt: not found |
dash | 27 shopt -s failglob in command context stdout: ['*.ZZ'] ['*.ZZ'] status=0stderr: dash: 2: shopt: not found |
mksh | 27 shopt -s failglob in command context stdout: ['*.ZZ'] ['*.ZZ'] status=0stderr: mksh: <stdin>[2]: shopt: not found |
ash | 27 shopt -s failglob in command context stdout: ['*.ZZ'] ['*.ZZ'] status=0stderr: ash: shopt: not found |
dash | 28 shopt -s failglob in loop context stdout: *.ZZ status=0 *.ZZ status=0stderr: dash: 3: shopt: not found |
mksh | 28 shopt -s failglob in loop context stdout: *.ZZ status=0 *.ZZ status=0stderr: mksh: <stdin>[3]: shopt: not found |
ash | 28 shopt -s failglob in loop context stdout: *.ZZ status=0 *.ZZ status=0stderr: ash: shopt: not found |
dash | 29 shopt -s failglob in array literal context stdout: stderr: dash: 1: Syntax error: "(" unexpected |
mksh | 29 shopt -s failglob in array literal context stdout: *.ZZ status=0stderr: mksh: <stdin>[3]: shopt: not found |
ash | 29 shopt -s failglob in array literal context stdout: stderr: ash: syntax error: unexpected "(" |
dash | 30 shopt -s failglob exits properly in command context with set -e stdout: ['*.ZZ']stderr: dash: 3: shopt: not found |
mksh | 30 shopt -s failglob exits properly in command context with set -e stdout: ['*.ZZ']stderr: mksh: <stdin>[3]: shopt: not found |
ash | 30 shopt -s failglob exits properly in command context with set -e stdout: ['*.ZZ']stderr: ash: shopt: not found |
dash | 31 shopt -s failglob exits properly in loop context with set -e stdout: *.ZZ status=0stderr: dash: 4: shopt: not found |
mksh | 31 shopt -s failglob exits properly in loop context with set -e stdout: *.ZZ status=0stderr: mksh: <stdin>[4]: shopt: not found |
ash | 31 shopt -s failglob exits properly in loop context with set -e stdout: *.ZZ status=0stderr: ash: shopt: not found |
dash | 32 shopt -s failglob behavior on single line with semicolon stdout: *.ZZ status=0 *.ZZ status=0stderr: dash: 1: shopt: not found |
mksh | 32 shopt -s failglob behavior on single line with semicolon stdout: *.ZZ status=0 *.ZZ status=0stderr: mksh: <stdin>[1]: shopt: not found |
ash | 32 shopt -s failglob behavior on single line with semicolon stdout: *.ZZ status=0 *.ZZ status=0stderr: ash: shopt: not found |
osh | 32 shopt -s failglob behavior on single line with semicolon stdout: status=1 status=1stderr: echo *.ZZ; echo status=$? # bash doesn't execute the second part! ^~~~ [ stdin ]:2: failglob: Pattern '*.ZZ' matched no files echo *.ZZ ^~~~ [ stdin ]:3: failglob: Pattern '*.ZZ' matched no files |
osh_ALT | 32 shopt -s failglob behavior on single line with semicolon stdout: status=1 status=1stderr: echo *.ZZ; echo status=$? # bash doesn't execute the second part! ^~~~ [ stdin ]:2: failglob: Pattern '*.ZZ' matched no files echo *.ZZ ^~~~ [ stdin ]:3: failglob: Pattern '*.ZZ' matched no files |
dash | 33 Don't glob flags on file system with GLOBIGNORE stdout: hello zzzzzstderr: |
mksh | 33 Don't glob flags on file system with GLOBIGNORE stdout: hello zzzzzstderr: |
ash | 33 Don't glob flags on file system with GLOBIGNORE stdout: hello zzzzzstderr: |
osh | 33 Don't glob flags on file system with GLOBIGNORE [osh stdout] Expected u'-* hello zzzz?\n', got 'hello zzzzz' stdout: hello zzzzzstderr: |
osh_ALT | 33 Don't glob flags on file system with GLOBIGNORE [osh_ALT stdout] Expected u'-* hello zzzz?\n', got '' [osh_ALT status] Expected 0, got 99 stdout: stderr: |
dash | 34 Splitting/Globbing doesn't happen on local assignment stdout: stderr: dash: 4: local: INSTALL.txt: bad variable name |
dash | 36 Glob of negated unescaped [[] and []] stdout: _[^[z] _[^]z] _[^[z] _[^]z]stderr: |
mksh | 36 Glob of negated unescaped [[] and []] stdout: _[^[z] _[^]z] _[^[z] _[^]z]stderr: |
dash | 37 PatSub of unescaped [[] and []] stdout: stderr: dash: 2: Bad substitution |
osh | 37 PatSub of unescaped [[] and []] [osh stdout] Expected '<foo]\n[foo>\n<foo]\n[foo>\n', got '<foo]\n[foo>\n[foo]\n[foo>\n' stdout: <foo] [foo> [foo] [foo>stderr: |
osh_ALT | 37 PatSub of unescaped [[] and []] [osh_ALT stdout] Expected '<foo]\n[foo>\n<foo]\n[foo>\n', got '<foo]\n[foo>\n[foo]\n[foo>\n' stdout: <foo] [foo> [foo] [foo>stderr: |
dash | 38 PatSub of negated unescaped [[] and []] stdout: stderr: dash: 2: Bad substitution |
mksh | 38 PatSub of negated unescaped [[] and []] stdout: <foo] [foo> <foo]stderr: |
osh | 38 PatSub of negated unescaped [[] and []] [osh stdout] Expected '[<<<<\n>>>>]\n[<<<<\n', got '[<<<<\n>>>>]\n[foo]\n' stdout: [<<<< >>>>] [foo]stderr: |
osh_ALT | 38 PatSub of negated unescaped [[] and []] [osh_ALT stdout] Expected '[<<<<\n>>>>]\n[<<<<\n', got '[<<<<\n>>>>]\n[foo]\n' stdout: [<<<< >>>>] [foo]stderr: |
dash | 39 Glob unicode char stdout: __a__stderr: |
mksh | 39 Glob unicode char stdout: __a__stderr: |
ash | 39 Glob unicode char stdout: __a__stderr: |
dash | 40 dotglob (bash option that dashglob is roughly consistent with) stdout: other otherstderr: dash: 6: shopt: not found |
mksh | 40 dotglob (bash option that dashglob is roughly consistent with) stdout: other otherstderr: mksh: <stdin>[6]: shopt: not found |
ash | 40 dotglob (bash option that dashglob is roughly consistent with) stdout: other otherstderr: ash: shopt: not found |
osh | 40 dotglob (bash option that dashglob is roughly consistent with) [osh stdout] Expected 'other\n.foorc other\n', got 'other\nother\n' stdout: other otherstderr: |
osh_ALT | 40 dotglob (bash option that dashglob is roughly consistent with) [osh_ALT stdout] Expected 'other\n.foorc other\n', got 'other\nother\n' stdout: other otherstderr: |