spec test index / oilshell.org
170 passed, 0 OK, 21 not implemented, 11 BUG, 7 failed, 0 timeouts, 0 cases skipped 7 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 | 25 shopt -s nullglob stdout: ['_tmp/spec-tmp/*.nonexistent'] ['_tmp/spec-tmp/*.nonexistent']stderr: dash: 2: shopt: not found |
mksh | 25 shopt -s nullglob stdout: ['_tmp/spec-tmp/*.nonexistent'] ['_tmp/spec-tmp/*.nonexistent']stderr: mksh: <stdin>[2]: shopt: not found |
ash | 25 shopt -s nullglob stdout: ['_tmp/spec-tmp/*.nonexistent'] ['_tmp/spec-tmp/*.nonexistent']stderr: ash: shopt: not found |
dash | 26 shopt -s failglob in command context stdout: ['*.ZZ'] ['*.ZZ'] status=0stderr: dash: 2: shopt: not found |
mksh | 26 shopt -s failglob in command context stdout: ['*.ZZ'] ['*.ZZ'] status=0stderr: mksh: <stdin>[2]: shopt: not found |
ash | 26 shopt -s failglob in command context stdout: ['*.ZZ'] ['*.ZZ'] status=0stderr: ash: shopt: not found |
osh | 26 shopt -s failglob in command context [osh stdout] Expected "['*.ZZ']\nstatus=1\n", got "['*.ZZ']\n['*.ZZ']\nstatus=0\n" stdout: ['*.ZZ'] ['*.ZZ'] status=0stderr: |
osh_ALT | 26 shopt -s failglob in command context [osh_ALT stdout] Expected "['*.ZZ']\nstatus=1\n", got "['*.ZZ']\n['*.ZZ']\nstatus=0\n" stdout: ['*.ZZ'] ['*.ZZ'] status=0stderr: |
dash | 27 shopt -s failglob in loop context stdout: *.ZZ status=0 *.ZZ status=0stderr: dash: 3: shopt: not found |
mksh | 27 shopt -s failglob in loop context stdout: *.ZZ status=0 *.ZZ status=0stderr: mksh: <stdin>[3]: shopt: not found |
ash | 27 shopt -s failglob in loop context stdout: *.ZZ status=0 *.ZZ status=0stderr: ash: shopt: not found |
osh | 27 shopt -s failglob in loop context [osh stdout] Expected '*.ZZ\nstatus=0\nstatus=1\n', got '*.ZZ\nstatus=0\n*.ZZ\nstatus=0\n' stdout: *.ZZ status=0 *.ZZ status=0stderr: |
osh_ALT | 27 shopt -s failglob in loop context [osh_ALT stdout] Expected '*.ZZ\nstatus=0\nstatus=1\n', got '*.ZZ\nstatus=0\n*.ZZ\nstatus=0\n' stdout: *.ZZ status=0 *.ZZ status=0stderr: |
dash | 28 Don't glob flags on file system with GLOBIGNORE stdout: hello zzzzzstderr: |
mksh | 28 Don't glob flags on file system with GLOBIGNORE stdout: hello zzzzzstderr: |
ash | 28 Don't glob flags on file system with GLOBIGNORE stdout: hello zzzzzstderr: |
osh | 28 Don't glob flags on file system with GLOBIGNORE [osh stdout] Expected u'-* hello zzzz?\n', got 'hello zzzzz' stdout: hello zzzzzstderr: |
osh_ALT | 28 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 | 29 Splitting/Globbing doesn't happen on local assignment stdout: stderr: dash: 2: local: 2020-03-16__11-40-31.json: bad variable name |
dash | 31 Glob of negated unescaped [[] and []] stdout: _[^[z] _[^]z] _[^[z] _[^]z]stderr: |
mksh | 31 Glob of negated unescaped [[] and []] stdout: _[^[z] _[^]z] _[^[z] _[^]z]stderr: |
dash | 32 PatSub of unescaped [[] and []] stdout: stderr: dash: 2: Bad substitution |
osh | 32 PatSub of unescaped [[] and []] [osh stdout] Expected '<foo]\n[foo>\n<foo]\n[foo>\n', got '<foo]\nf\nf\n[foo>\n' stdout: <foo] f f [foo>stderr: |
osh_ALT | 32 PatSub of unescaped [[] and []] [osh_ALT stdout] Expected '<foo]\n[foo>\n<foo]\n[foo>\n', got '<foo]\nf\nf\n[foo>\n' stdout: <foo] f f [foo>stderr: |
dash | 33 PatSub of negated unescaped [[] and []] stdout: stderr: dash: 2: Bad substitution |
mksh | 33 PatSub of negated unescaped [[] and []] stdout: <foo] [foo> <foo]stderr: |
osh | 33 PatSub of negated unescaped [[] and []] [osh stdout] Expected '[<<<<\n>>>>]\n[<<<<\n', got '[<<<<\nf\n' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: [<<<< fstderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oil.py", line 969, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 915, in main return AppBundleMain(argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 888, in AppBundleMain status = ShellMain('osh', argv0, main_argv, login_shell) File "/home/andy/git/oilshell/oil/bin/oil.py", line 704, in ShellMain status = main_loop.Batch(ex, c_parser, arena, nodes_out=nodes_out) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 166, in Batch is_return, is_fatal = ex.ExecuteAndCatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1873, in ExecuteAndCatch status = self._Execute(node, fork_external=fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1818, in _Execute status, check_errexit = self._Dispatch(node, fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1037, in _Dispatch cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1761, in EvalWordSequence2 self._EvalWordToParts(w, False, part_vals) # not double quoted File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1376, in _EvalWordToParts self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1269, in _EvalWordPart self._EvalBracedVarSub(part, part_vals, quoted) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1031, in _EvalBracedVarSub regex, warnings = glob_.GlobToERE(pat_val.s) File "/home/andy/git/oilshell/oil/osh/glob_.py", line 338, in GlobToERE regex = _GenerateERE(parts) File "/home/andy/git/oilshell/oil/osh/glob_.py", line 292, in _GenerateERE raise AssertionError(part.id) AssertionError: 274 |
osh_ALT | 33 PatSub of negated unescaped [[] and []] [osh_ALT stdout] Expected '[<<<<\n>>>>]\n[<<<<\n', got '[<<<<\nf\n' [osh_ALT status] Expected 0, got 1 [osh_ALT stderr] Found 'Traceback (most recent' stdout: [<<<< fstderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oil.py", line 944, in _cpython_main_hook sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 915, in main return AppBundleMain(argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 888, in AppBundleMain status = ShellMain('osh', argv0, main_argv, login_shell) File "/home/andy/git/oilshell/oil/bin/oil.py", line 704, in ShellMain status = main_loop.Batch(ex, c_parser, arena, nodes_out=nodes_out) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 172, in Batch return status File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1873, in ExecuteAndCatch status = self._Execute(node, fork_external=fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1818, in _Execute status, check_errexit = self._Dispatch(node, fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1088, in _Dispatch self.mem.PopTemp() File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1761, in EvalWordSequence2 self._EvalWordToParts(w, False, part_vals) # not double quoted File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1376, in _EvalWordToParts self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1269, in _EvalWordPart self._EvalBracedVarSub(part, part_vals, quoted) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1069, in _EvalBracedVarSub begin = self.arith_ev.EvalToInt(op.begin) File "/home/andy/git/oilshell/oil/osh/glob_.py", line 338, in GlobToERE regex = _GenerateERE(parts) File "/home/andy/git/oilshell/oil/osh/glob_.py", line 297, in _GenerateERE out.append('.') AssertionError: 274 FATAL: couldn't import from app bundle '/home/andy/git/oilshell/oil/_tmp/oil-tar-test/oil-0.8.pre3/_bin/osh' (1) Stripping the oil.ovm binary may cause this error. See https://github.com/oilshell/oil/issues/47 |
dash | 34 Glob unicode char stdout: __a__stderr: |
mksh | 34 Glob unicode char stdout: __a__stderr: |
ash | 34 Glob unicode char stdout: __a__stderr: |
osh | 34 Glob unicode char [osh stdout] Expected '__a__ __\xce\xbc__\n', got '__a__\n' stdout: __a__stderr: |
osh_ALT | 34 Glob unicode char [osh_ALT stdout] Expected '__a__ __\xce\xbc__\n', got '__a__\n' stdout: __a__stderr: |
dash | 35 dotglob (bash option that dashglob is roughly consistent with) stdout: other otherstderr: dash: 5: shopt: not found |
mksh | 35 dotglob (bash option that dashglob is roughly consistent with) stdout: other otherstderr: mksh: <stdin>[5]: shopt: not found |
ash | 35 dotglob (bash option that dashglob is roughly consistent with) stdout: other otherstderr: ash: shopt: not found |
osh | 35 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 | 35 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: |