spec test index / oilshell.org
41 passed, 5 OK, 0 not implemented, 0 BUG, 20 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' dumb_alloc: gNumNew = 1716 gNumDelete = 116 gMemPos = 60000 gNumMalloc = 36 gNumFree = 0 gMemPos2 = 9776 |
| 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 [osh_.cc stdout] Expected 'one\nstatus=0\nhello\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed. |
| osh_.cc | 3 Failed redirect in assignment, vs. export [osh_.cc stdout] Expected 'abc=\nabc=\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed. |
| 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 '' [osh_.cc status] Expected 0, got -6 stdout: stderr: rm: cannot remove '_tmp': Is a directory osh_eval.opt: cpp/pylib_path_stat.h:10: bool path_stat::exists(Str*): Assertion `0' failed. |
| osh_.cc | 5 Function def in pipeline [osh_.cc stdout] Expected 'ha\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
| 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/travis/build/oilshell/oil/bin/osh_eval.py", line 68, in <module>
sys.exit(main(sys.argv))
File "/home/travis/build/oilshell/oil/bin/osh_eval.py", line 36, in main
None)
File "/home/travis/build/oilshell/oil/core/shell_native.py", line 476, in Main
cmd_flags=cmd_eval.IsMainProgram)
File "/home/travis/build/oilshell/oil/core/main_loop.py", line 324, in Batch
is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1498, in ExecuteAndCatch
status = self._Execute(node)
File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1345, in _Execute
status, check_errexit = self._Dispatch(node, pipeline_st)
File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 988, in _Dispatch
status = self._ExecuteList(node.children)
File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1401, in _ExecuteList
status = self._Execute(child)
File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1345, in _Execute
status, check_errexit = self._Dispatch(node, pipeline_st)
File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 623, in _Dispatch
status = self._RunSimpleCommand(cmd_val, node.do_fork)
File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 477, in _RunSimpleCommand
return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
File "/home/travis/build/oilshell/oil/core/executor.py", line 193, in RunSimpleCommand
status = self.RunBuiltin(builtin_id, cmd_val)
File "/home/travis/build/oilshell/oil/core/executor.py", line 121, in RunBuiltin
builtin_func = self.builtins[builtin_id]
KeyError: 3
Traceback (most recent call last):
File "/home/travis/build/oilshell/oil/bin/osh_eval.py", line 68, in <module>
sys.exit(main(sys.argv))
File "/home/travis/build/oilshell/oil/bin/osh_eval.py", line 36, in main
None)
File "/home/travis/build/oilshell/oil/core/shell_native.py", line 476, in Main
cmd_flags=cmd_eval.IsMainProgram)
File "/home/travis/build/oilshell/oil/core/main_loop.py", line 324, in Batch
is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1498, in ExecuteAndCatch
status = self._Execute(node)
File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1345, in _Execute
status, check_errexit = self._Dispatch(node, pipeline_st)
File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 621, in _Dispatch
status = self._RunSimpleCommand(cmd_val, node.do_fork)
File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 477, in _RunSimpleCommand
return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
File "/home/travis/build/oilshell/oil/core/executor.py", line 193, in RunSimpleCommand
status = self.RunBuiltin(builtin_id, cmd_val)
File "/home/travis/build/oilshell/oil/core/executor.py", line 121, 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 -6 stdout: stderr: rm: cannot remove '_tmp': Is a directory osh_eval.opt: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed. |
| osh_.cc | 9 shift is fatal at top level? [osh_.cc stdout] Expected 'hello\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt: cpp/pylib_path_stat.h:10: bool path_stat::exists(Str*): Assertion `0' failed. |
| osh_.cc | 11 IFS - http://landley.net/notes.html#05-03-2020 [osh_.cc stdout] Expected '=one=\n=abc=\n=d f=\n=ghi=\n---\n=one=\n==\n=two=\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt: cpp/pylib_path_stat.h:10: bool path_stat::exists(Str*): Assertion `0' failed. |
| osh_.cc | 12 for loop parsing - http://landley.net/notes.html#04-03-2020 [osh_.cc stdout] Expected 'one\ntwo\nthree\n0\ncannot-parse\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt: cpp/pylib_path_stat.h:10: bool path_stat::exists(Str*): Assertion `0' failed. |
| osh_.cc | 13 Parsing $(( )) [osh_.cc stdout] Expected 'fail\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt: cpp/pylib_path_stat.h:10: bool path_stat::exists(Str*): Assertion `0' failed. |
| 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: dumb_alloc: gNumNew = 2738 gNumDelete = 290 gMemPos = 88880 gNumMalloc = 352 gNumFree = 0 gMemPos2 = 14768 |
| 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 dumb_alloc: gNumNew = 2611 gNumDelete = 264 gMemPos = 86256 gNumMalloc = 384 gNumFree = 0 gMemPos2 = 15312 |
| osh_.cc | 19 Can't parse extra } [osh_.cc status] Expected 2, got -6 stdout: stderr: osh_eval.opt: cpp/pylib_path_stat.h:10: bool path_stat::exists(Str*): Assertion `0' failed. |
| osh_.cc | 21 Pipeline - http://landley.net/notes-2019.html#16-12-2019 [osh_.cc stdout] Expected 'hello\n-@hello@-\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |