| case | bash | mksh | zsh | osh | description |
| 0 | pass | pass | pass | pass | (( )) result |
| 1 | pass | pass | pass | pass | negative number is true |
| 2 | pass | pass | pass | FAIL | (( )) in if statement |
| details | |||||
| 3 | pass | pass | pass | FAIL | (( )) |
| details | |||||
| 4 | pass | pass | ok | FAIL | (( )) with arrays |
| details | details | ||||
| 5 | pass | pass | pass | FAIL | (( )) with error |
| details |
19 passed, 1 ok, 0 known unimplemented, 0 known bugs, 4 failed, 0 skipped
| osh | 2 (( )) in if statement [osh stdout] Expected b'True\n', got b'' stdout: stderr: Traceback (most recent call last):
File "bin/osh", line 378, in <module>
sys.exit(main(sys.argv))
File "bin/osh", line 368, in main
return OshMain(main_argv)
File "bin/osh", line 327, in OshMain
status, cflow = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 822, in Execute
status, _ = self.Execute(arm.cond)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 703, in Execute
status, cflow = self.Execute(node.command)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 723, in Execute
ok = arith_ev.Eval(node.child)
File "/home/andy/git/oil/bin/../core/expr_eval.py", line 64, in Eval
result = self._Eval(node)
File "/home/andy/git/oil/bin/../core/expr_eval.py", line 239, in _Eval
raise AssertionError("Shouldn't get here")
AssertionError: Shouldn't get here
|
| osh | 3 (( )) [osh stdout] Expected b'1 3\n', got b'' stdout: stderr: Traceback (most recent call last):
File "bin/osh", line 378, in <module>
sys.exit(main(sys.argv))
File "bin/osh", line 368, in main
return OshMain(main_argv)
File "bin/osh", line 327, in OshMain
status, cflow = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 758, in Execute
status, cflow = self.Execute(child) # last status wins
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 723, in Execute
ok = arith_ev.Eval(node.child)
File "/home/andy/git/oil/bin/../core/expr_eval.py", line 64, in Eval
result = self._Eval(node)
File "/home/andy/git/oil/bin/../core/expr_eval.py", line 237, in _Eval
raise AssertionError("Invalid node %r" % node.id)
AttributeError: 'ArithAssign' object has no attribute 'id'
|
| zsh | 4 (( )) with arrays stdout: 9stderr: |
| osh | 4 (( )) with arrays [osh stdout] Expected b'15\n', got b'' stdout: stderr: Traceback (most recent call last):
File "bin/osh", line 378, in <module>
sys.exit(main(sys.argv))
File "bin/osh", line 368, in main
return OshMain(main_argv)
File "bin/osh", line 327, in OshMain
status, cflow = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 758, in Execute
status, cflow = self.Execute(child) # last status wins
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 723, in Execute
ok = arith_ev.Eval(node.child)
File "/home/andy/git/oil/bin/../core/expr_eval.py", line 64, in Eval
result = self._Eval(node)
File "/home/andy/git/oil/bin/../core/expr_eval.py", line 237, in _Eval
raise AssertionError("Invalid node %r" % node.id)
AttributeError: 'ArithAssign' object has no attribute 'id'
|
| osh | 5 (( )) with error [osh stdout] Expected b'false\ntrue\ntrue\n0\n', got b'' stdout: stderr: Traceback (most recent call last):
File "bin/osh", line 378, in <module>
sys.exit(main(sys.argv))
File "bin/osh", line 368, in main
return OshMain(main_argv)
File "bin/osh", line 327, in OshMain
status, cflow = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 758, in Execute
status, cflow = self.Execute(child) # last status wins
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 765, in Execute
status, cflow = self.Execute(left)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 723, in Execute
ok = arith_ev.Eval(node.child)
File "/home/andy/git/oil/bin/../core/expr_eval.py", line 64, in Eval
result = self._Eval(node)
File "/home/andy/git/oil/bin/../core/expr_eval.py", line 237, in _Eval
raise AssertionError("Invalid node %r" % node.id)
AttributeError: 'ArithAssign' object has no attribute 'id'
|