| case | dash | bash | mksh | osh | description |
| 0 | ok | pass | pass | pass | nounset |
| details | |||||
| 1 | ok | pass | pass | pass | -u is nounset |
| details | |||||
| 2 | pass | pass | pass | FAIL | reset option with long flag |
| details | |||||
| 3 | pass | pass | pass | FAIL | reset option with short flag |
| details | |||||
| 4 | pass | pass | pass | pass | sh -c |
| 5 | pass | pass | pass | FAIL | -n for no execution (useful with --ast-output) |
| details | |||||
| 6 | pass | pass | pass | FAIL | xtrace |
| details |
22 passed, 2 ok, 0 known unimplemented, 0 known bugs, 4 failed, 0 skipped
| dash | 0 nounset stdout: []stderr: /bin/dash: 3: unset: parameter not set |
| dash | 1 -u is nounset stdout: []stderr: /bin/dash: 3: unset: parameter not set |
| osh | 2 reset option with long flag [osh stdout] Expected '[]\n', got '' [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 984, in _Execute
status = thunk.RunInParent()
File "/home/andy/git/oil/bin/../core/process.py", line 402, in RunInParent
return self.ex.RunBuiltin(self.builtin_id, self.argv)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 730, in RunBuiltin
status = self._Set(argv)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 526, in _Set
raise NotImplementedError()
NotImplementedError
|
| osh | 3 reset option with short flag [osh stdout] Expected '[]\n', got '' [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 984, in _Execute
status = thunk.RunInParent()
File "/home/andy/git/oil/bin/../core/process.py", line 402, in RunInParent
return self.ex.RunBuiltin(self.builtin_id, self.argv)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 730, in RunBuiltin
status = self._Set(argv)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 523, in _Set
raise NotImplementedError(argv)
NotImplementedError: ['set', '-u']
|
| osh | 5 -n for no execution (useful with --ast-output) [osh status] Expected 0, got 1 stdout: 1stderr: 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 984, in _Execute
status = thunk.RunInParent()
File "/home/andy/git/oil/bin/../core/process.py", line 402, in RunInParent
return self.ex.RunBuiltin(self.builtin_id, self.argv)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 730, in RunBuiltin
status = self._Set(argv)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 523, in _Set
raise NotImplementedError(argv)
NotImplementedError: ['set', '-n']
|
| osh | 6 xtrace [osh stderr] Expected '+ echo 2\n', got '' stdout: 1 2stderr: |