Results for var-op-test.test.sh

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

Details on runs that didn't PASS

dash0 Lazy Evaluation of Alternative

stdout:
x
0
stderr:
dash: 5: arithmetic expression: expecting primary: "i++"
osh3 Unquoted with array as default value

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

stdout:
['Xx1 2', '3 4xX']
['Xx1', '2', '3', '4xX']
stderr:
bash4 Quoted 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_ALT4 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_ALT5 Assign default with array

stdout:
['Xx1 2', '3 4xX']
['x1 2 3 4x']
stderr:
dash13 array and - and +

stdout:
stderr: 
dash14 $@ and - and +

stdout:
argv=
argv=plus
argv=minus
argv=
stderr:
dash15 assoc array and - and +

stdout:
stderr: 
mksh15 assoc array and - and +

stdout:
stderr: 
dash16 Error when empty

stdout:
stderr: 
dash: 2: empty: is empty
dash17 Error when unset

stdout:
stderr: 
dash: 1: unset: is empty
dash20 array ${arr[0]=x}

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
dash21 assoc array ${arr["k"]=x}

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
mksh21 assoc array ${arr["k"]=x}

stdout:
stderr: 
mksh: <stdin>[1]: syntax error: '(' unexpected
mksh23 "\e" as arg

stdout:

stderr: