spec test index / oilshell.org
status | dash | bash | mksh | osh | osh_ALT | |
pass | 16 | 23 | 21 | 21 | 21 | |
ok | 2 | 0 | 0 | 3 | 3 | |
N-I | 5 | 0 | 2 | 0 | 0 | |
BUG | 1 | 1 | 1 | 0 | 0 | |
total | 24 | 24 | 24 | 24 | 24 | |
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 | ${v:+foo} Alternative value when empty |
9 | pass | pass | pass | pass | pass | ${v+foo} Alternative value when unset |
10 | pass | pass | pass | pass | pass | "${x+foo}" quoted (regression) |
11 | pass | pass | pass | pass | pass | ${v+foo} and ${v:+foo} when set -u |
12 | pass | pass | pass | pass | pass | ${v-foo} and ${v:-foo} when set -u |
13 | N-I | pass | pass | pass | pass | array and - and + |
details | ||||||
14 | BUG | pass | pass | pass | pass | $@ and - and + |
details | ||||||
15 | N-I | pass | N-I | pass | pass | assoc array and - and + |
details | details | |||||
16 | ok | pass | pass | pass | pass | Error when empty |
details | ||||||
17 | ok | pass | pass | pass | pass | Error when unset |
details | ||||||
18 | pass | pass | pass | pass | pass | Error when unset |
19 | pass | pass | pass | pass | pass | ${var=x} dynamic scope |
20 | N-I | pass | pass | pass | pass | array ${arr[0]=x} |
details | ||||||
21 | N-I | pass | N-I | pass | pass | assoc array ${arr["k"]=x} |
details | details | |||||
22 | pass | pass | pass | pass | pass | "\z" as arg |
23 | pass | pass | BUG | pass | pass | "\e" as arg |
details |
102 passed, 8 OK, 7 not implemented, 3 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 | 13 array and - and + stdout: stderr: |
dash | 14 $@ and - and + stdout: argv= argv=plus argv=minus argv=stderr: |
dash | 15 assoc array and - and + stdout: stderr: |
mksh | 15 assoc array and - and + stdout: stderr: |
dash | 16 Error when empty stdout: stderr: dash: 2: empty: is empty |
dash | 17 Error when unset stdout: stderr: dash: 1: unset: is empty |
dash | 20 array ${arr[0]=x} stdout: stderr: dash: 1: Syntax error: "(" unexpected |
dash | 21 assoc array ${arr["k"]=x} stdout: stderr: dash: 1: Syntax error: "(" unexpected |
mksh | 21 assoc array ${arr["k"]=x} stdout: stderr: mksh: <stdin>[1]: syntax error: '(' unexpected |
mksh | 23 "\e" as arg stdout: stderr: |