Results for var-sub.test.sh

casedashbashmkshoshdescription
0pass ok ok pass Bad var sub
detailsdetails
1pass BUG pass pass Braced block inside ${}
details
2ok pass pass pass Filename redirect with "$@"
details
3pass ok pass pass Filename redirect with split word
details
4ok pass pass pass Descriptor redirect to bad "$@"
details
5pass pass ok pass Here doc with bad "$@" delimiter
details

17 passed, 6 ok, 0 known unimplemented, 1 known bugs, 0 failed, 0 skipped

Details on runs that didn't PASS

bash0 Bad var sub

stdout:
stderr: 
/bin/bash: line 1: ${a|}: bad substitution
mksh0 Bad var sub

stdout:
stderr: 
/bin/mksh: <stdin>[1]: ${a|}: bad substitution
bash1 Braced block inside ${}

stdout:
stderr: 
/bin/bash: line 1: syntax error near unexpected token `)'
/bin/bash: line 1: `echo ${foo:-$({ which ls; })}'
dash2 Filename redirect with "$@"

stdout:
stderr: 
/bin/dash: 2: cannot create _tmp/var-sub1 _tmp/var-sub2: Directory nonexistent
bash3 Filename redirect with split word

stdout:
stderr: 
/bin/bash: line 3: $foo: ambiguous redirect
dash4 Descriptor redirect to bad "$@"

stdout:
stderr: 
/bin/dash: 3: Syntax error: Bad fd number
mksh5 Here doc with bad "$@" delimiter

stdout:
stderr: 
/bin/mksh: <stdin>[7]: here document '$@' unclosed