spec test index / oilshell.org
| status | dash | bash | mksh | osh | |
| pass | 7 | 11 | 10 | 8 | |
| N-I | 3 | 0 | 0 | 0 | |
| BUG | 1 | 0 | 1 | 0 | |
| FAIL | 0 | 0 | 0 | 3 | |
| total | 11 | 11 | 11 | 11 | |
| case | dash | bash | mksh | osh | description |
| 0 | pass | pass | pass | pass | Case statement |
| 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 | pass | Case with empty condition |
| 4 | pass | pass | pass | pass | Match a literal with a glob character |
| 5 | pass | pass | pass | pass | Match a literal with a glob character with a dynamic pattern |
| 6 | pass | pass | pass | pass | Quoted literal in glob pattern |
| 7 | pass | pass | pass | pass | Multiple Patterns Match |
| 8 | BUG | pass | BUG | pass | Match one unicode char |
| details | details | ||||
| 9 | pass | pass | pass | FAIL | case with single byte LC_ALL=C |
| details | |||||
| 10 | N-I | pass | pass | pass | \(\) in pattern (regression) |
| details |
36 passed, 0 OK, 3 not implemented, 2 BUG, 3 failed, 0 timeouts, 0 cases skipped 3 failed under osh
| dash | 1 Case statement with ;;& stdout: stderr: dash: 3: Syntax error: newline unexpected (expecting ")") |
| osh | 1 Case statement with ;;& [osh stdout] Expected u'A\nstar\nstar2\n', got '' [osh status] Expected 0, got 2 stdout: stderr: a) echo A ;;&
^
[ stdin ]:2: Expected word type Id.KW_Esac, got Id.Op_Amp
|
| dash | 2 Case statement with ;& stdout: stderr: dash: 2: Syntax error: "&" unexpected |
| osh | 2 Case statement with ;& [osh stdout] Expected u'A\ntwo\nthree\n', got '' [osh status] Expected 0, got 2 stdout: stderr: a) echo A ;&
^
[ stdin ]:2: Invalid word while parsing command
|
| dash | 8 Match one unicode char stdout: yes no nostderr: |
| mksh | 8 Match one unicode char stdout: yes no nostderr: |
| osh | 9 case with single byte LC_ALL=C [osh stdout] Expected 'b\n', got 'a\n' stdout: astderr: |
| dash | 10 \(\) in pattern (regression) stdout: matchstderr: |