array-basic () { run-file array-basic "$@" } run-file () { local spec_name=$1; shift; sh-spec spec/$spec_name.test.sh --compare-shells --oils-bin-dir $PWD/bin "$@" } array-basic: spec test case results

Results for array-basic.test.sh

statusbashmkshzshosh
pass 5525
BUG 0030
total5555
casebashmkshzshoshdescription
0pass pass pass pass "${a[@]}" and "${a[*]}"
1pass pass BUG pass ${a[@]} and ${a[*]}
details
2pass pass BUG pass 4 ways to interpolate empty array
details
3pass pass pass pass empty array
4pass pass BUG pass Empty array with :-
details
17 passed, 0 OK, 0 not implemented, 3 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

zsh1 ${a[@]} and ${a[*]}

stdout:
['1', '2 3', '1', '2 3']
stderr:
zsh2 4 ways to interpolate empty array

stdout:
['1', '', '2', '3', '', '4', '5']
stderr:
zsh4 Empty array with :-

stdout:
['not one', 'not one']
stderr: