spec test index / oilshell.org
status | bash | dash | mksh | osh | |
pass | 12 | 8 | 10 | 9 | |
ok | 0 | 0 | 1 | 0 | |
N-I | 0 | 3 | 0 | 0 | |
BUG | 0 | 1 | 1 | 0 | |
FAIL | 0 | 0 | 0 | 3 | |
total | 12 | 12 | 12 | 12 | |
case | bash | dash | mksh | osh | description |
0 | pass | pass | pass | pass | Case statement |
1 | pass | N-I | pass | FAIL | Case statement with ;;& |
details | details | ||||
2 | pass | N-I | 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 | pass | BUG | BUG | pass | Match one unicode char |
details | details | ||||
9 | pass | pass | pass | FAIL | case with single byte LC_ALL=C |
details | |||||
10 | pass | N-I | pass | pass | \(\) in pattern (regression) |
details | |||||
11 | pass | pass | ok | pass | case \n bug regression |
details |
39 passed, 1 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 '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 '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: |
mksh | 11 case \n bug regression stdout: stderr: mksh: <stdin>[1]: syntax error: 'newline' unexpected |