| 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 | |||||
| 4 | pass | pass | pass | FAIL | Match a literal with a glob character |
| details | |||||
| 5 | pass | pass | pass | FAIL | Match a literal with a glob character with a dynamic pattern |
| details | |||||
| 6 | pass | pass | pass | FAIL | Quoted literal in glob pattern |
| details |
19 passed, 0 ok, 2 known unimplemented, 0 known bugs, 7 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 = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 937, in Execute
status = self._Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 912, 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'' stdout: stderr: Line 2 of '<stdin>'
a) echo A ;;&
^
Expected word type KW_Esac, got (TokenWord token:(token id:Op_Amp val:"&" span_id:15))
---
Line 0 of '<unknown>'
<token had no position info>
NO COL
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'' stdout: stderr: Line 2 of '<stdin>'
a) echo A ;&
^
ParseCommand: Expected to parse a command, got (TokenWord token:(token id:Op_Amp val:"&" span_id:15))
---
Line 0 of '<unknown>'
<token had no position info>
NO COL
Error parsing AndOr in ParseCommandTerm
---
Line 2 of '<stdin>'
a) echo A ;&
^
Expected DSEMI or ESAC, got (TokenWord token:(token id:Op_Amp val:"&" span_id:15))
---
Line 0 of '<unknown>'
<token had no position info>
NO COL
ParseCase: error parsing case list
---
Line 0 of '<unknown>'
<token had no position info>
NO COL
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 = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 937, in Execute
status = self._Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 912, in _Execute
raise NotImplementedError
NotImplementedError
|
| osh | 4 Match a literal with a glob character [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 = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 937, in Execute
status = self._Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 828, in _Execute
status = self._Execute(child) # last status wins
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 912, in _Execute
raise NotImplementedError
NotImplementedError
|
| osh | 5 Match a literal with a glob character with a dynamic pattern [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 = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 937, in Execute
status = self._Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 828, in _Execute
status = self._Execute(child) # last status wins
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 912, in _Execute
raise NotImplementedError
NotImplementedError
|
| osh | 6 Quoted literal in glob pattern [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 = ex.Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 937, in Execute
status = self._Execute(node)
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 828, in _Execute
status = self._Execute(child) # last status wins
File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 912, in _Execute
raise NotImplementedError
NotImplementedError
|