spec test index / oilshell.org
status | dash | bash | mksh | osh | osh_ALT | |
pass | 13 | 17 | 16 | 15 | 15 | |
ok | 2 | 0 | 0 | 3 | 3 | |
N-I | 3 | 0 | 1 | 0 | 0 | |
BUG | 0 | 1 | 1 | 0 | 0 | |
total | 18 | 18 | 18 | 18 | 18 | |
case | dash | bash | mksh | osh | osh_ALT | description |
0 | N-I | pass | pass | pass | pass | Lazy Evaluation of Alternative |
details | ||||||
1 | pass | pass | pass | pass | pass | Default value when empty |
2 | pass | pass | pass | pass | pass | Default value when unset |
3 | pass | pass | pass | ok | ok | Unquoted with array as default value |
details | details | |||||
4 | pass | BUG | pass | ok | ok | Quoted with array as default value |
details | details | details | ||||
5 | pass | pass | pass | ok | ok | Assign default with array |
details | details | |||||
6 | pass | pass | pass | pass | pass | Assign default value when empty |
7 | pass | pass | pass | pass | pass | Assign default value when unset |
8 | pass | pass | pass | pass | pass | Alternative value when empty |
9 | pass | pass | pass | pass | pass | Alternative value when unset |
10 | ok | pass | pass | pass | pass | Error when empty |
details | ||||||
11 | ok | pass | pass | pass | pass | Error when unset |
details | ||||||
12 | pass | pass | pass | pass | pass | Error when unset |
13 | pass | pass | pass | pass | pass | ${var=x} dynamic scope |
14 | N-I | pass | pass | pass | pass | array ${arr[0]=x} |
details | ||||||
15 | N-I | pass | N-I | pass | pass | assoc array ${arr["k"]=x} |
details | details | |||||
16 | pass | pass | pass | pass | pass | "\z" as arg |
17 | pass | pass | BUG | pass | pass | "\e" as arg |
details |
76 passed, 8 OK, 4 not implemented, 2 BUG, 0 failed, 0 timeouts, 0 cases skipped
dash | 0 Lazy Evaluation of Alternative stdout: x 0stderr: dash: 5: arithmetic expression: expecting primary: "i++" |
osh | 3 Unquoted with array as default value stdout: ['Xx1 2', '3 4xX'] ['Xx1', '2', '3', '4xX']stderr: |
osh_ALT | 3 Unquoted with array as default value stdout: ['Xx1 2', '3 4xX'] ['Xx1', '2', '3', '4xX']stderr: |
bash | 4 Quoted with array as default value stdout: ['Xx1', '2', '3', '4xX'] ['Xx1 2 3 4xX']stderr: |
osh | 4 Quoted with array as default value stdout: ['Xx1 2', '3 4xX'] ['Xx1 2 3 4xX']stderr: |
osh_ALT | 4 Quoted with array as default value stdout: ['Xx1 2', '3 4xX'] ['Xx1 2 3 4xX']stderr: |
osh | 5 Assign default with array stdout: ['Xx1 2', '3 4xX'] ['x1 2 3 4x']stderr: |
osh_ALT | 5 Assign default with array stdout: ['Xx1 2', '3 4xX'] ['x1 2 3 4x']stderr: |
dash | 10 Error when empty stdout: stderr: dash: 2: empty: is empty |
dash | 11 Error when unset stdout: stderr: dash: 1: unset: is empty |
dash | 14 array ${arr[0]=x} stdout: stderr: dash: 1: Syntax error: "(" unexpected |
dash | 15 assoc array ${arr["k"]=x} stdout: stderr: dash: 1: Syntax error: "(" unexpected |
mksh | 15 assoc array ${arr["k"]=x} stdout: stderr: mksh: <stdin>[1]: syntax error: '(' unexpected |
mksh | 17 "\e" as arg stdout: stderr: |