spec test index / oilshell.org
49 passed, 6 OK, 0 not implemented, 0 BUG, 11 failed, 0 timeouts, 0 cases skipped 3 failed under osh
osh | 1 setting readonly var (bash is only one where it's non-fatal) stdout: stderr: abc=def ^~~~ [ stdin ]:2: fatal: Can't assign to readonly value 'abc' |
osh_.py | 1 setting readonly var (bash is only one where it's non-fatal) stdout: stderr: abc=def ^~~~ [ stdin ]:2: fatal: Can't assign to readonly value 'abc' |
osh_.cc | 1 setting readonly var (bash is only one where it's non-fatal) stdout: stderr: abc=def ^~~~ [ stdin ]:2: fatal: Can't assign to readonly value 'abc' |
osh | 2 readonly with temp binding stdout: one status=0 hellostderr: echo potato < /does/not/exist || echo hello ^ [ stdin ]:5: Can't open '/does/not/exist': No such file or directory |
osh_.py | 2 readonly with temp binding stdout: one status=0 hellostderr: echo potato < /does/not/exist || echo hello ^ [ stdin ]:5: Can't open '/does/not/exist': No such file or directory |
osh_.cc | 2 readonly with temp binding stdout: one status=0 hellostderr: echo potato < /does/not/exist || echo hello ^ [ stdin ]:5: -1: Bad file descriptor |
osh | 4 Evaluation order of redirect and ${undef?error} [osh stdout] Expected 'exists1\n', got 'exists1\nexists2\n' stdout: exists1 exists2stderr: rm: cannot remove '_tmp': Is a directory X=${x?bc} > walrus ^ [ -c flag ]:1: fatal: unset variable 'bc' >walrus echo ${a?bc} ^ [ -c flag ]:1: fatal: unset variable 'bc' |
osh_.py | 4 Evaluation order of redirect and ${undef?error} [osh_.py stdout] Expected 'exists1\n', got 'exists1\nexists2\n' stdout: exists1 exists2stderr: rm: cannot remove '_tmp': Is a directory X=${x?bc} > walrus ^ [ -c flag ]:1: fatal: unset variable 'bc' >walrus echo ${a?bc} ^ [ -c flag ]:1: fatal: unset variable 'bc' |
osh_.cc | 4 Evaluation order of redirect and ${undef?error} [osh_.cc stdout] Expected 'exists1\n', got 'exists1\nexists2\n' stdout: exists1 exists2stderr: rm: cannot remove '_tmp': Is a directory X=${x?bc} > walrus ^~ [ -c flag ]:1: fatal: unset variable 'bc' >walrus echo ${a?bc} ^~~~ [ -c flag ]:1: fatal: unset variable 'bc' |
osh_.py | 7 no shebang [osh_.py stdout] Expected 'hello\nhello\nhello 123\n', got 'hello\n' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: hellostderr: rm: cannot remove '_tmp': Is a directory Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 66, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 34, in main None) File "/home/andy/git/oilshell/oil/core/shell_native.py", line 486, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 332, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1643, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1481, in _Execute status = self._Dispatch(node, cmd_st) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1043, in _Dispatch status = self._ExecuteList(node.children) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1546, in _ExecuteList status = self._Execute(child) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1481, in _Execute status = self._Dispatch(node, cmd_st) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 709, in _Dispatch status = self._RunSimpleCommand(cmd_val, cmd_st, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 548, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, cmd_st, do_fork) File "/home/andy/git/oilshell/oil/core/executor.py", line 192, in RunSimpleCommand status = self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/core/executor.py", line 129, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 3 Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 66, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 34, in main None) File "/home/andy/git/oilshell/oil/core/shell_native.py", line 486, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 332, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1643, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1481, in _Execute status = self._Dispatch(node, cmd_st) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 707, in _Dispatch status = self._RunSimpleCommand(cmd_val, cmd_st, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 548, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, cmd_st, do_fork) File "/home/andy/git/oilshell/oil/core/executor.py", line 192, in RunSimpleCommand status = self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/core/executor.py", line 129, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 3 |
osh_.cc | 7 no shebang [osh_.cc stdout] Expected 'hello\nhello\nhello 123\n', got '' [osh_.cc status] Expected 0, got 129 stdout: stderr: rm: cannot remove '_tmp': Is a directory terminate called after throwing an instance of 'KeyError*' terminate called after throwing an instance of 'KeyError*' |
osh | 14 IFS - http://landley.net/notes.html#15-02-2020 (TODO: osh) [osh stdout] Expected '==\n=abc=\n==\n==\n=abc=\n=def=\n==\n', got '==\n=abc=\n==\n=abc=\n=def=\n' stdout: == =abc= == =abc= =def=stderr: |
osh_.py | 14 IFS - http://landley.net/notes.html#15-02-2020 (TODO: osh) [osh_.py stdout] Expected '==\n=abc=\n==\n==\n=abc=\n=def=\n==\n', got '==\n=abc=\n==\n=abc=\n=def=\n' stdout: == =abc= == =abc= =def=stderr: |
osh_.cc | 14 IFS - http://landley.net/notes.html#15-02-2020 (TODO: osh) [osh_.cc stdout] Expected '==\n=abc=\n==\n==\n=abc=\n=def=\n==\n', got '==\n=abc=\n==\n=abc=\n=def=\n' stdout: == =abc= == =abc= =def=stderr: |
osh | 15 IFS 2 (TODO: osh) [osh stdout] Expected '=x=\n=abc=\n=def=\n==\n', got '=x=\n=abc=\n=def=\n' stdout: =x= =abc= =def=stderr: this one appears different between osh and bash ^~~~ [ stdin ]:1: 'this' not found |
osh_.py | 15 IFS 2 (TODO: osh) [osh_.py stdout] Expected '=x=\n=abc=\n=def=\n==\n', got '=x=\n=abc=\n=def=\n' stdout: =x= =abc= =def=stderr: this one appears different between osh and bash ^~~~ [ stdin ]:1: 'this' not found |
osh_.cc | 15 IFS 2 (TODO: osh) [osh_.cc stdout] Expected '=x=\n=abc=\n=def=\n==\n', got '=x=\n=abc=\n=def=\n' stdout: =x= =abc= =def=stderr: this one appears different between osh and bash ^~~~ [ stdin ]:1: 'this' not found |