spec test index / oilshell.org
status | osh | osh-cpp | |
pass | 21 | 21 | |
ok | 3 | 3 | |
total | 24 | 24 | |
case | osh | osh-cpp | description |
0 | pass | pass | Lazy Evaluation of Alternative |
1 | pass | pass | Default value when empty |
2 | pass | pass | Default value when unset |
3 | ok | ok | Unquoted with array as default value |
details | details | ||
4 | ok | ok | Quoted with array as default value |
details | details | ||
5 | ok | ok | Assign default with array |
details | details | ||
6 | pass | pass | Assign default value when empty |
7 | pass | pass | Assign default value when unset |
8 | pass | pass | ${v:+foo} Alternative value when empty |
9 | pass | pass | ${v+foo} Alternative value when unset |
10 | pass | pass | "${x+foo}" quoted (regression) |
11 | pass | pass | ${v+foo} and ${v:+foo} when set -u |
12 | pass | pass | ${v-foo} and ${v:-foo} when set -u |
13 | pass | pass | array and - and + |
14 | pass | pass | $@ and - and + |
15 | pass | pass | assoc array and - and + |
16 | pass | pass | Error when empty |
17 | pass | pass | Error when unset |
18 | pass | pass | Error when unset |
19 | pass | pass | ${var=x} dynamic scope |
20 | pass | pass | array ${arr[0]=x} |
21 | pass | pass | assoc array ${arr["k"]=x} |
22 | pass | pass | "\z" as arg |
23 | pass | pass | "\e" as arg |
42 passed, 6 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
osh | 3 Unquoted with array as default value stdout: ['Xx1 2', '3 4xX'] ['Xx1', '2', '3', '4xX']stderr: |
osh-cpp | 3 Unquoted 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-cpp | 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-cpp | 5 Assign default with array stdout: ['Xx1 2', '3 4xX'] ['x1 2 3 4x']stderr: |