Results for sh-usage.test.sh

statusdashbashmkshzshoshosh_ALT
pass 10129121313
ok 101000
N-I 213100
total131313131313
casedashbashmkshzshoshosh_ALTdescription
0pass pass pass pass pass pass sh -c
1pass pass pass pass pass pass empty -c input
2pass pass N-I pass pass pass sh +c is accepted
details
3pass pass pass pass pass pass empty stdin
4N-I pass N-I pass pass pass shell obeys --help (regression for OSH)
detailsdetails
5pass pass pass pass pass pass args are passed
6pass pass pass pass pass pass args that look like flags are passed after script
7pass pass pass pass pass pass args that look like flags are passed after -c
8pass pass pass pass pass pass exit with explicit arg
9pass pass pass pass pass pass exit with no args
10N-I N-I N-I N-I pass pass --rcfile in non-interactive shell prints warnings
detailsdetailsdetailsdetails
11pass pass pass pass pass pass accepts -l flag
12ok pass ok pass pass pass accepts --login flag (dash and mksh don't accept long flags)
detailsdetails
69 passed, 2 OK, 7 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

mksh2 sh +c is accepted

stdout:
stderr: 
mksh: echo hi: No such file or directory
dash4 shell obeys --help (regression for OSH)

stdout:
stderr: 
dash: 0: Illegal option --
mksh4 shell obeys --help (regression for OSH)

stdout:
stderr: 
mksh: mksh: --: unknown option
dash10 --rcfile in non-interactive shell prints warnings

stdout:
==> interactive.txt <==
dash: 0: Illegal option --

==> non-interactive.txt <==
dash: 0: Illegal option --
stderr:
warned=1
warned=1
bash10 --rcfile in non-interactive shell prints warnings

stdout:
rc
==> interactive.txt <==
bash-4.4$ exit

==> non-interactive.txt <==
stderr:
warned=1
warned=1
mksh10 --rcfile in non-interactive shell prints warnings

stdout:
==> interactive.txt <==
mksh: mksh: --: unknown option

==> non-interactive.txt <==
mksh: mksh: --: unknown option
stderr:
warned=1
warned=1
zsh10 --rcfile in non-interactive shell prints warnings

stdout:
==> interactive.txt <==
zsh: no such option: rcfile

==> non-interactive.txt <==
zsh: no such option: rcfile
stderr:
warned=1
warned=1
dash12 accepts --login flag (dash and mksh don't accept long flags)

stdout:
stderr: 
dash: 0: Illegal option --
mksh12 accepts --login flag (dash and mksh don't accept long flags)

stdout:
stderr: 
mksh: mksh: --: unknown option