| case | dash | bash | mksh | osh | description |
| 0 | N-I | pass | pass | FAIL | Lazy Evaluation of Alternative |
| details | details | ||||
| 1 | pass | pass | pass | pass | Default value when empty |
| 2 | pass | pass | pass | pass | Default value when unset |
| 3 | pass | pass | pass | FAIL | Assign default value when empty |
| details | |||||
| 4 | pass | pass | pass | FAIL | Assign default value when unset |
| details | |||||
| 5 | pass | pass | pass | pass | Alternative value when empty |
| 6 | pass | pass | pass | pass | Alternative value when unset |
| 7 | ok | pass | pass | FAIL | Error when empty |
| details | details | ||||
| 8 | ok | pass | pass | FAIL | Error when unset |
| details | details | ||||
| 9 | pass | pass | pass | pass | Error when unset |
32 passed, 2 ok, 1 known unimplemented, 0 known bugs, 5 failed, 0 skipped
| dash | 0 Lazy Evaluation of Alternative stdout: x 0stderr: /bin/dash: 5: arithmetic expression: expecting primary: "i++" |
| osh | 0 Lazy Evaluation of Alternative [osh stdout] Expected b'x\n0\n0\n1\n', got b'x\n0\n' [osh status] Expected 0, got 1 stdout: x 0stderr: 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 721, in _Execute
argv = self.ev.EvalWordSequence(words)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1045, in EvalWordSequence
return self._EvalWordSequence(words)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1028, in _EvalWordSequence
args = self._EvalWordAndReframe(w)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 989, in _EvalWordAndReframe
part_vals = self._EvalParts(word)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 882, in _EvalParts
for v in self.part_ev._EvalWordPart(p, quoted=quoted):
File "/home/andy/git/oil/bin/../core/word_eval.py", line 804, in _EvalWordPart
return self._EvalBracedVarSub(part, quoted)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 714, in _EvalBracedVarSub
quoted)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 417, in _ApplyTestOp
part_vals = self.word_ev._EvalParts(op.arg_word, quoted=quoted)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 882, in _EvalParts
for v in self.part_ev._EvalWordPart(p, quoted=quoted):
File "/home/andy/git/oil/bin/../core/word_eval.py", line 814, in _EvalWordPart
if arith_ev.Eval(part.anode):
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 238, in _Eval
raise AssertionError("Shouldn't get here")
AssertionError: Shouldn't get here
|
| osh | 3 Assign default value when empty [osh stdout] Expected b'is empty\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 721, in _Execute
argv = self.ev.EvalWordSequence(words)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1045, in EvalWordSequence
return self._EvalWordSequence(words)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1028, in _EvalWordSequence
args = self._EvalWordAndReframe(w)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 989, in _EvalWordAndReframe
part_vals = self._EvalParts(word)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 882, in _EvalParts
for v in self.part_ev._EvalWordPart(p, quoted=quoted):
File "/home/andy/git/oil/bin/../core/word_eval.py", line 804, in _EvalWordPart
return self._EvalBracedVarSub(part, quoted)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 714, in _EvalBracedVarSub
quoted)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 433, in _ApplyTestOp
raise NotImplementedError
NotImplementedError
|
| osh | 4 Assign default value when unset [osh stdout] Expected b'is unset\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 721, in _Execute
argv = self.ev.EvalWordSequence(words)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1045, in EvalWordSequence
return self._EvalWordSequence(words)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1028, in _EvalWordSequence
args = self._EvalWordAndReframe(w)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 989, in _EvalWordAndReframe
part_vals = self._EvalParts(word)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 882, in _EvalParts
for v in self.part_ev._EvalWordPart(p, quoted=quoted):
File "/home/andy/git/oil/bin/../core/word_eval.py", line 804, in _EvalWordPart
return self._EvalBracedVarSub(part, quoted)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 714, in _EvalBracedVarSub
quoted)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 433, in _ApplyTestOp
raise NotImplementedError
NotImplementedError
|
| dash | 7 Error when empty stdout: stderr: /bin/dash: 2: empty: is empty |
| osh | 7 Error when empty [osh status] Expected 1, got 33 stdout: stderr: |
| dash | 8 Error when unset stdout: stderr: /bin/dash: 1: unset: is empty |
| osh | 8 Error when unset [osh status] Expected 1, got 33 stdout: stderr: |