Results for sh-usage.test.sh

statusdashbashmkshosh
pass 910811
N-I 2130
total11111111
casedashbashmkshoshdescription
0pass pass pass pass sh -c
1pass pass pass pass empty -c input
2pass pass N-I pass sh +c is accepted
details
3pass pass pass pass empty stdin
4N-I pass N-I pass shell obeys --help (regression for OSH)
detailsdetails
5pass pass pass pass args are passed
6pass pass pass pass args that look like flags are passed after script
7pass pass pass pass args that look like flags are passed after -c
8pass pass pass pass exit with explicit arg
9pass pass pass pass exit with no args
10N-I N-I N-I pass --rcfile in non-interactive shell prints warnings
detailsdetailsdetails
38 passed, 0 OK, 6 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