spec test index / oilshell.org
| status | bash | dash | mksh | zsh | osh | |
| pass | 12 | 8 | 10 | 9 | 11 | |
| ok | 0 | 0 | 1 | 1 | 0 | |
| N-I | 0 | 3 | 0 | 1 | 0 | |
| BUG | 0 | 1 | 1 | 1 | 0 | |
| FAIL | 0 | 0 | 0 | 0 | 1 | |
| total | 12 | 12 | 12 | 12 | 12 | |
| case | bash | dash | mksh | zsh | osh | description |
| 0 | pass | pass | pass | pass | pass | Case statement |
| 1 | pass | N-I | pass | N-I | pass | Case statement with ;;& |
| details | details | |||||
| 2 | pass | N-I | pass | pass | pass | Case statement with ;& |
| details | ||||||
| 3 | pass | pass | pass | pass | pass | Case with empty condition |
| 4 | pass | pass | pass | pass | pass | Match a literal with a glob character |
| 5 | pass | pass | pass | BUG | pass | Match a literal with a glob character with a dynamic pattern |
| details | ||||||
| 6 | pass | pass | pass | pass | pass | Quoted literal in glob pattern |
| 7 | pass | pass | pass | pass | pass | Multiple Patterns Match |
| 8 | pass | BUG | BUG | pass | pass | Pattern ? matches 1 code point (many bytes), but not multiple code points |
| details | details | |||||
| 9 | pass | pass | pass | pass | FAIL | case with single byte LC_ALL=C |
| details | ||||||
| 10 | pass | N-I | pass | pass | pass | \(\) in pattern (regression) |
| details | ||||||
| 11 | pass | pass | ok | ok | pass | case \n bug regression |
| details | details |
50 passed, 2 OK, 4 not implemented, 3 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
| dash | 1 Case statement with ;;& stdout: stderr: dash: 3: Syntax error: newline unexpected (expecting ")") |
| zsh | 1 Case statement with ;;& stdout: stderr: zsh: parse error near `&' zsh: parse error near `)' zsh: parse error near `)' zsh: parse error near `esac' |
| dash | 2 Case statement with ;& stdout: stderr: dash: 3: Syntax error: "&" unexpected |
| zsh | 5 Match a literal with a glob character with a dynamic pattern stdout: stderr: |
| dash | 8 Pattern ? matches 1 code point (many bytes), but not multiple code points stdout: yes no nostderr: |
| mksh | 8 Pattern ? matches 1 code point (many bytes), but not multiple code points 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 |
| zsh | 11 case \n bug regression stdout: stderr: zsh: parse error near `\n' zsh: command not found: in |