84 passed, 4 ok, 4 known unimplemented, 0 known bugs, 7 failed, 0 skipped
| mksh | 4 [[ regex matching stdout: stderr: /bin/mksh: <stdin>[2]: syntax error: '=~' unexpected operator/operand |
| mksh | 5 [[ regex syntax error stdout: stderr: /bin/mksh: <stdin>[1]: syntax error: '=~' unexpected operator/operand |
| osh | 13 precedence of && and || in a command context [osh stdout] Expected b'NO precedence\n', got b'YES\n' stdout: YESstderr: |
| mksh | 14 Octal literals with -eq stdout: falsestderr: |
| osh | 14 Octal literals with -eq [osh stdout] Expected b'true\nfalse\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 = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 959, in Execute
status = self._Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 824, in _Execute
status = self._Execute(child) # last status wins
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 829, in _Execute
status = self._Execute(left)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 772, in _Execute
raise AssertionError('Error evaluating boolean: %s' % bool_ev.Error())
AssertionError: Error evaluating boolean: ["Invalid integer: invalid literal for int() with base 10: 'ZZZ017'"]
|
| mksh | 15 Hex literals with -eq stdout: falsestderr: /bin/mksh: <stdin>[3]: 0x0f: bad number '0x0f' |
| osh | 15 Hex literals with -eq [osh stdout] Expected b'true\nfalse\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 = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 959, in Execute
status = self._Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 824, in _Execute
status = self._Execute(child) # last status wins
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 829, in _Execute
status = self._Execute(left)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 772, in _Execute
raise AssertionError('Error evaluating boolean: %s' % bool_ev.Error())
AssertionError: Error evaluating boolean: ["Invalid integer: invalid literal for int() with base 10: '0x0f'"]
|
| bash | 18 -eq on strings stdout: true truestderr: |
| mksh | 18 -eq on strings stdout: true truestderr: |
| osh | 18 -eq on strings [osh stdout] Expected b'true\ntrue\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 = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 959, in Execute
status = self._Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 824, in _Execute
status = self._Execute(child) # last status wins
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 829, in _Execute
status = self._Execute(left)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 772, in _Execute
raise AssertionError('Error evaluating boolean: %s' % bool_ev.Error())
AssertionError: Error evaluating boolean: ["Invalid integer: invalid literal for int() with base 10: 'a'"]
|
| mksh | 21 [[ with op variable stdout: stderr: /bin/mksh: <stdin>[2]: syntax error: '$op' unexpected operator/operand |
| mksh | 29 Argument that looks like a real operator stdout: stderr: /bin/mksh: <stdin>[1]: syntax error: '-f' missing argument |
| osh | 29 Argument that looks like a real operator [osh status] Expected 2, got 1 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 = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 959, in Execute
status = self._Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 768, in _Execute
ok = bool_ev.Eval(node.expr)
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 284, in _Eval
s = self._EvalCompoundWord(node.child)
File "/home/andy/git/oil/bin/../core/expr_eval.py", line 252, in _EvalCompoundWord
ok, val = self.word_ev.EvalWordToString(word, do_fnmatch=do_fnmatch)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 900, in EvalWordToString
for part in word.parts:
AttributeError: 'TokenWord' object has no attribute 'parts'
|
| osh | 30 Does user array equal "$@" ? [osh stdout] Expected b'true\nfalse\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 = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 959, in Execute
status = self._Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 824, in _Execute
status = self._Execute(child) # last status wins
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 829, in _Execute
status = self._Execute(left)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 768, in _Execute
ok = bool_ev.Eval(node.expr)
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 313, in _Eval
s1 = self._EvalCompoundWord(node.left)
File "/home/andy/git/oil/bin/../core/expr_eval.py", line 252, in _EvalCompoundWord
ok, val = self.word_ev.EvalWordToString(word, do_fnmatch=do_fnmatch)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 904, in EvalWordToString
self._AddErrorContext("Only string parts are allowed", word=word)
TypeError: _AddErrorContext() got an unexpected keyword argument 'word'
|
| osh | 31 Array coerces to string [osh stdout] Expected b'true\nfalse\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 = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 959, in Execute
status = self._Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 824, in _Execute
status = self._Execute(child) # last status wins
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 829, in _Execute
status = self._Execute(left)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 768, in _Execute
ok = bool_ev.Eval(node.expr)
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 317, in _Eval
s2 = self._EvalCompoundWord(node.right, do_fnmatch=do_fnmatch)
File "/home/andy/git/oil/bin/../core/expr_eval.py", line 252, in _EvalCompoundWord
ok, val = self.word_ev.EvalWordToString(word, do_fnmatch=do_fnmatch)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 904, in EvalWordToString
self._AddErrorContext("Only string parts are allowed", word=word)
TypeError: _AddErrorContext() got an unexpected keyword argument 'word'
|