Results for var-op-test.test.sh

statusoshosh-cpp
pass 2121
ok 33
total2424
caseoshosh-cppdescription
0pass pass Lazy Evaluation of Alternative
1pass pass Default value when empty
2pass pass Default value when unset
3ok ok Unquoted with array as default value
detailsdetails
4ok ok Quoted with array as default value
detailsdetails
5ok ok Assign default with array
detailsdetails
6pass pass Assign default value when empty
7pass pass Assign default value when unset
8pass pass ${v:+foo} Alternative value when empty
9pass pass ${v+foo} Alternative value when unset
10pass pass "${x+foo}" quoted (regression)
11pass pass ${v+foo} and ${v:+foo} when set -u
12pass pass ${v-foo} and ${v:-foo} when set -u
13pass pass array and - and +
14pass pass $@ and - and +
15pass pass assoc array and - and +
16pass pass Error when empty
17pass pass Error when unset
18pass pass Error when unset
19pass pass ${var=x} dynamic scope
20pass pass array ${arr[0]=x}
21pass pass assoc array ${arr["k"]=x}
22pass pass "\z" as arg
23pass pass "\e" as arg
42 passed, 6 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh3 Unquoted with array as default value

stdout:
['Xx1 2', '3 4xX']
['Xx1', '2', '3', '4xX']
stderr:
osh-cpp3 Unquoted with array as default value

stdout:
['Xx1 2', '3 4xX']
['Xx1', '2', '3', '4xX']
stderr:
osh4 Quoted with array as default value

stdout:
['Xx1 2', '3 4xX']
['Xx1 2 3 4xX']
stderr:
osh-cpp4 Quoted with array as default value

stdout:
['Xx1 2', '3 4xX']
['Xx1 2 3 4xX']
stderr:
osh5 Assign default with array

stdout:
['Xx1 2', '3 4xX']
['x1 2 3 4x']
stderr:
osh-cpp5 Assign default with array

stdout:
['Xx1 2', '3 4xX']
['x1 2 3 4x']
stderr: