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 835, 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 0x7fca5476b710>\nLine 2 of '<stdin>'\n a) echo A ;;&\n ^\n---\n<core.base.ParseError object at 0x7fca5476b0b8>\nLine 0 of '<unknown>'\n <token had no position info>\nNO COL\n---\n" stdout: <core.base.ParseError object at 0x7fca5476b710> Line 2 of '<stdin>' a) echo A ;;& ^ --- <core.base.ParseError object at 0x7fca5476b0b8> 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 0x7fed831975f8>\nLine 2 of '<stdin>'\n a) echo A ;&\n ^\n---\n<core.base.ParseError object at 0x7fed83197710>\nLine 0 of '<unknown>'\n <token had no position info>\nNO COL\n---\n<core.base.ParseError object at 0x7fed83197668>\nLine 2 of '<stdin>'\n a) echo A ;&\n ^\n---\n<core.base.ParseError object at 0x7fed831972e8>\nLine 0 of '<unknown>'\n <token had no position info>\nNO COL\n---\n<core.base.ParseError object at 0x7fed831970b8>\nLine 0 of '<unknown>'\n <token had no position info>\nNO COL\n---\n" stdout: <core.base.ParseError object at 0x7fed831975f8> Line 2 of '<stdin>' a) echo A ;& ^ --- <core.base.ParseError object at 0x7fed83197710> Line 0 of '<unknown>' <token had no position info> NO COL --- <core.base.ParseError object at 0x7fed83197668> Line 2 of '<stdin>' a) echo A ;& ^ --- <core.base.ParseError object at 0x7fed831972e8> Line 0 of '<unknown>' <token had no position info> NO COL --- <core.base.ParseError object at 0x7fed831970b8> 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 835, in Execute raise NotImplementedError NotImplementedError |