| case | dash | bash | mksh | osh | description |
| 0 | pass | pass | pass | pass | $PWD |
| 1 | pass | pass | pass | pass | $? |
| 2 | pass | pass | pass | pass | $# |
| 3 | ok | ok | ok | FAIL | $- |
| details | details | details | details | ||
| 4 | N-I | pass | N-I | FAIL | $_ |
| details | details | details | |||
| 5 | pass | pass | pass | FAIL | PID $$ |
| details | |||||
| 6 | pass | pass | pass | FAIL | Background PID $! |
| details | |||||
| 7 | pass | pass | pass | FAIL | $PPID |
| details | |||||
| 8 | N-I | pass | pass | FAIL | $PIPESTATUS |
| details | details | ||||
| 9 | N-I | pass | pass | FAIL | $RANDOM |
| details | details |
26 passed, 3 ok, 4 known unimplemented, 0 known bugs, 7 failed, 0 skipped
| dash | 3 $- stdout: ustderr: |
| bash | 3 $- stdout: huBcstderr: |
| mksh | 3 $- stdout: uhcstderr: |
| osh | 3 $- [osh status] Expected 0, got 2 stdout: stderr: Usage: osh [options] osh: error: no such option: -o |
| dash | 4 $_ stdout: histderr: |
| mksh | 4 $_ stdout: histderr: |
| osh | 4 $_ [osh stdout] Expected u'hi\nhi\n', got 'hi\n\n' stdout: histderr: |
| osh | 5 PID $$ [osh status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last):
File "bin/osh", line 430, in <module>
main(sys.argv)
File "bin/osh", line 417, in main
sys.exit(OilMain(argv))
File "bin/osh", line 400, in OilMain
status = OshMain(main_argv)
File "bin/osh", line 359, in OshMain
status = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 1212, in Execute
status = self._Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 1000, in _Execute
status = self._RunPipeline(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 926, in _RunPipeline
p = self._GetProcessForNode(child)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 807, in _GetProcessForNode
argv = self.ev.EvalWordSequence(words)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1024, in EvalWordSequence
return self._EvalWordSequence(words)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1004, in _EvalWordSequence
args = self._EvalWordAndReframe(w)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 957, in _EvalWordAndReframe
part_vals = self._EvalParts(word)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 853, in _EvalParts
for v in self.part_ev._EvalWordPart(p, quoted=quoted):
File "/home/andy/git/oil/bin/../core/word_eval.py", line 791, in _EvalWordPart
val, decay_array = self._EvalSpecialVar(part.token.id, quoted)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 335, in _EvalSpecialVar
raise NotImplementedError(op_id)
NotImplementedError: VSub_Dollar
|
| osh | 6 Background PID $! [osh status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last):
File "bin/osh", line 430, in <module>
main(sys.argv)
File "bin/osh", line 417, in main
sys.exit(OilMain(argv))
File "bin/osh", line 400, in OilMain
status = OshMain(main_argv)
File "bin/osh", line 359, in OshMain
status = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 1212, in Execute
status = self._Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 1057, in _Execute
status = self._Execute(child) # last status wins
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 1000, in _Execute
status = self._RunPipeline(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 926, in _RunPipeline
p = self._GetProcessForNode(child)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 807, in _GetProcessForNode
argv = self.ev.EvalWordSequence(words)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1024, in EvalWordSequence
return self._EvalWordSequence(words)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 1004, in _EvalWordSequence
args = self._EvalWordAndReframe(w)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 957, in _EvalWordAndReframe
part_vals = self._EvalParts(word)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 853, in _EvalParts
for v in self.part_ev._EvalWordPart(p, quoted=quoted):
File "/home/andy/git/oil/bin/../core/word_eval.py", line 791, in _EvalWordPart
val, decay_array = self._EvalSpecialVar(part.token.id, quoted)
File "/home/andy/git/oil/bin/../core/word_eval.py", line 335, in _EvalSpecialVar
raise NotImplementedError(op_id)
NotImplementedError: VSub_Bang
|
| osh | 7 $PPID [osh status] Expected 0, got 99 stdout: 7stderr: |
| dash | 8 $PIPESTATUS stdout: stderr: /bin/dash: 2: Bad substitution |
| osh | 8 $PIPESTATUS [osh stdout] Expected "['0', '33', '0']\n", got '[]\n' stdout: []stderr: |
| dash | 9 $RANDOM stdout: 0stderr: |
| osh | 9 $RANDOM [osh status] Expected 0, got 99 stdout: 7stderr: |