| case | dash | bash | mksh | osh | description |
| 0 | pass | pass | pass | FAIL | Case statement |
| details | |||||
| 1 | N-I | pass | pass | FAIL | Case statement with ;;& |
| details | details | ||||
| 2 | N-I | pass | pass | FAIL | Case statement with ;& |
| details | details | ||||
| 3 | pass | pass | pass | FAIL | Case with empty condition |
| details |
10 passed, 0 ok, 2 known unimplemented, 0 known bugs, 4 failed, 0 skipped
| osh | 0 Case statement [osh stdout] Expected b'A\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 853, in Execute
status, cflow = self._Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 829, in _Execute
raise NotImplementedError
NotImplementedError
|
| dash | 1 Case statement with ;;& stdout: stderr: /bin/dash: 3: Syntax error: newline unexpected (expecting ")") |
| osh | 1 Case statement with ;;& [osh stdout] Expected b'A\nstar\nstar2\n', got b"<core.base.ParseError object at 0x7f086e383908>\nLine 2 of '<stdin>'\n a) echo A ;;&\n ^\n---\n<core.base.ParseError object at 0x7f086e3832b0>\nLine 0 of '<unknown>'\n <token had no position info>\nNO COL\n---\n" stdout: <core.base.ParseError object at 0x7f086e383908>
Line 2 of '<stdin>'
a) echo A ;;&
^
---
<core.base.ParseError object at 0x7f086e3832b0>
Line 0 of '<unknown>'
<token had no position info>
NO COL
---
stderr: Expected word type KW_Esac, got (TokenWord token:(token id:Op_Amp val:"&" span_id:15)) Error parsing AndOr in ParseCommandTerm |
| dash | 2 Case statement with ;& stdout: stderr: /bin/dash: 2: Syntax error: "&" unexpected |
| osh | 2 Case statement with ;& [osh stdout] Expected b'A\ntwo\nthree\n', got b"<core.base.ParseError object at 0x7f641daee7f0>\nLine 2 of '<stdin>'\n a) echo A ;&\n ^\n---\n<core.base.ParseError object at 0x7f641daee908>\nLine 0 of '<unknown>'\n <token had no position info>\nNO COL\n---\n<core.base.ParseError object at 0x7f641daee860>\nLine 2 of '<stdin>'\n a) echo A ;&\n ^\n---\n<core.base.ParseError object at 0x7f641daee4e0>\nLine 0 of '<unknown>'\n <token had no position info>\nNO COL\n---\n<core.base.ParseError object at 0x7f641daee2b0>\nLine 0 of '<unknown>'\n <token had no position info>\nNO COL\n---\n" stdout: <core.base.ParseError object at 0x7f641daee7f0>
Line 2 of '<stdin>'
a) echo A ;&
^
---
<core.base.ParseError object at 0x7f641daee908>
Line 0 of '<unknown>'
<token had no position info>
NO COL
---
<core.base.ParseError object at 0x7f641daee860>
Line 2 of '<stdin>'
a) echo A ;&
^
---
<core.base.ParseError object at 0x7f641daee4e0>
Line 0 of '<unknown>'
<token had no position info>
NO COL
---
<core.base.ParseError object at 0x7f641daee2b0>
Line 0 of '<unknown>'
<token had no position info>
NO COL
---
stderr: ParseCommand: Expected to parse a command, got (TokenWord token:(token id:Op_Amp val:"&" span_id:15)) Error parsing AndOr in ParseCommandTerm Expected DSEMI or ESAC, got (TokenWord token:(token id:Op_Amp val:"&" span_id:15)) ParseCase: error parsing case list Error parsing AndOr in ParseCommandTerm |
| osh | 3 Case with empty condition [osh stdout] Expected b'match\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 853, in Execute
status, cflow = self._Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 829, in _Execute
raise NotImplementedError
NotImplementedError
|