/home/uke/oil/bin/osh sh-usage: spec test case results

Results for sh-usage.test.sh

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

Details on runs that didn't PASS

osh0 sh -c

stdout:
hi
stderr:
osh1 empty -c input

stdout:
stderr: 
osh2 sh +c is accepted

stdout:
hi
stderr:
osh3 empty stdin

stdout:
stderr: 
osh4 shell obeys --help (regression for OSH)

stdout:
yes
stderr:
osh5 args are passed

stdout:
['a', 'b']
stderr:
osh6 args that look like flags are passed after script

stdout:
['--help', '--help', '-h']
stderr:
osh7 args that look like flags are passed after -c

stdout:
['--help', '-h']
stderr:
osh8 exit with explicit arg

stdout:
stderr: 
osh9 exit with no args

stdout:
stderr: 
osh10 --rcfile in non-interactive shell prints warnings

stdout:
rc
^D
==> interactive.txt <==
osh-0.22.0$ 
==> non-interactive.txt <==
osh warning: --rcfile ignored with --norc
osh warning: --rcfile ignored in non-interactive shell
stderr:
warned=1
warned=0
osh11 accepts -l flag

stdout:
stderr: 
osh12 accepts --login flag (dash and mksh don't accept long flags)

stdout:
stderr: