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

Results for redirect-multi.test.sh

statusbashmkshzshashosh
pass 1144413
ok 02420
N-I 16370
BUG 11200
total1313131313
casebashmkshzshashoshdescription
0pass N-I pass N-I pass File redirects with glob args (bash and zsh only)
detailsdetails
1pass pass ok pass pass File redirect without matching any file
details
2N-I N-I pass N-I pass ysh behavior when glob doesn't match
detailsdetailsdetails
3pass N-I ok N-I pass File redirect without matching any file, with failglob
detailsdetailsdetails
4pass pass pass pass pass Redirect to $empty (in function body)
5pass pass pass pass pass Redirect to ''
6pass ok ok ok pass File redirect to $var with glob char
detailsdetailsdetails
7pass N-I BUG N-I pass File redirect that globs to more than one file (bash and zsh only)
detailsdetailsdetails
8pass BUG N-I N-I pass File redirect with extended glob
detailsdetailsdetails
9pass N-I N-I N-I pass Extended glob that doesn't match anything
detailsdetailsdetails
10BUG pass N-I pass pass Non-file redirects don't respect glob args (we differe from bash)
detailsdetails
11pass N-I BUG N-I pass Redirect with brace expansion isn't allowed
detailsdetailsdetails
12pass ok ok ok pass File redirects have word splitting too!
detailsdetailsdetails
36 passed, 8 OK, 17 not implemented, 4 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

mksh0 File redirects with glob args (bash and zsh only)

stdout:
escaped
stderr:
ash0 File redirects with glob args (bash and zsh only)

stdout:
escaped
stderr:
zsh1 File redirect without matching any file

stdout:
stderr: 
zsh: no matches found: zz-*-xx
bash2 ysh behavior when glob doesn't match

stdout:
status=0
qq-*-zz
stderr:
bash: line 1: shopt: ysh:upgrade: invalid shell option name
mksh2 ysh behavior when glob doesn't match

stdout:
status=0
qq-*-zz
stderr:
mksh: <stdin>[1]: shopt: not found
ash2 ysh behavior when glob doesn't match

stdout:
status=0
qq-*-zz
stderr:
ash: shopt: not found
mksh3 File redirect without matching any file, with failglob

stdout:
status=0
zz-*-xx
status=0
stderr:
mksh: <stdin>[1]: shopt: not found
zsh3 File redirect without matching any file, with failglob

stdout:
stderr: 
zsh: command not found: shopt
zsh: no matches found: zz-*-xx
ash3 File redirect without matching any file, with failglob

stdout:
status=0
zz-*-xx
status=0
stderr:
ash: shopt: not found
mksh6 File redirect to $var with glob char

stdout:
status=0
==> two-bar <==

==> two-* <==
hi
stderr:
zsh6 File redirect to $var with glob char

stdout:
status=0
==> two-bar <==

==> two-* <==
hi
stderr:
ash6 File redirect to $var with glob char

stdout:
status=0
==> two-bar <==

==> two-* <==
hi
stderr:
mksh7 File redirect that globs to more than one file (bash and zsh only)

stdout:
status=0
==> foo-bar <==

==> foo-spam <==
stderr:
zsh7 File redirect that globs to more than one file (bash and zsh only)

stdout:
status=0
==> foo-bar <==
hi

==> foo-spam <==
hi
stderr:
ash7 File redirect that globs to more than one file (bash and zsh only)

stdout:
status=0
==> foo-bar <==

==> foo-spam <==
stderr:
mksh8 File redirect with extended glob

stdout:
status=0
stderr:
mksh: <stdin>[1]: shopt: not found
zsh8 File redirect with extended glob

stdout:
stderr: 
zsh: command not found: shopt
zsh: no matches found: @(*-bar|other)
ash8 File redirect with extended glob

stdout:
stderr: 
ash: shopt: not found
ash: syntax error: unexpected "("
mksh9 Extended glob that doesn't match anything

stdout:
status=0
bad_@(*.cc|*.h)
status=0
stderr:
mksh: <stdin>[1]: shopt: not found
rm: cannot remove 'bad_*': No such file or directory
mksh: <stdin>[9]: shopt: not found
zsh9 Extended glob that doesn't match anything

stdout:
stderr: 
zsh: command not found: shopt
zsh: no matches found: bad_*
zsh: no matches found: bad_@(*.cc|*.h)
ash9 Extended glob that doesn't match anything

stdout:
stderr: 
ash: shopt: not found
rm: cannot remove 'bad_*': No such file or directory
ash: syntax error: unexpected "("
bash10 Non-file redirects don't respect glob args (we differe from bash)

stdout:
should-not-be-on-stdout
stdout
stderr:
stderr
zsh10 Non-file redirects don't respect glob args (we differe from bash)

stdout:
stderr: 
zsh: command not found: 10
mksh11 Redirect with brace expansion isn't allowed

stdout:
status=0
hi
status=0
stderr:
zsh11 Redirect with brace expansion isn't allowed

stdout:
status=0
==> a-one <==
hi

==> a-two <==
hi
status=0
stderr:
ash11 Redirect with brace expansion isn't allowed

stdout:
status=0
hi
status=0
stderr:
mksh12 File redirects have word splitting too!

stdout:
status=0
hi
status=0
stderr:
zsh12 File redirects have word splitting too!

stdout:
status=0
hi
status=0
stderr:
ash12 File redirects have word splitting too!

stdout:
status=0
hi
status=0
stderr: