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

Results for sh-usage.test.sh

statusosh
pass 16
ok 1
total17
caseoshdescription
0pass sh -c
1pass empty -c input
2pass sh +c is accepted
3pass empty stdin
4ok sh - and sh -- stop flag processing
details
5pass shell obeys --help (regression for OSH)
6pass args are passed
7pass args that look like flags are passed after script
8pass args that look like flags are passed after -c
9pass exit with explicit arg
10pass exit with no args
11pass --rcfile in non-interactive shell prints warnings
12pass accepts -l flag
13pass accepts --login flag (dash and mksh don't accept long flags)
14pass osh --eval
15pass Set LC_ALL LC_CTYPE LC_COLLATE LANG - affects glob ?
16pass LC_CTYPE=invalid
16 passed, 1 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 sh - and sh -- stop flag processing

stdout:
foo
-
foo
stderr:
+ echo foo
-
+ echo foo
osh5 shell obeys --help (regression for OSH)

stdout:
yes
stderr:
osh6 args are passed

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

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

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

stdout:
stderr: 
osh10 exit with no args

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

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

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

stdout:
stderr: 
osh14 osh --eval

stdout:
one x y z
status=0 flag -c x y z

one x y z
fail x y z
status=42 flag -c x y z
status=0
stderr:
osh15 Set LC_ALL LC_CTYPE LC_COLLATE LANG - affects glob ?

stdout:
LC_ALL _x_
LC_ALL _x_ _μ_

LC_CTYPE _x_
LC_CTYPE _x_ _μ_

LC_COLLATE _x_
LC_COLLATE _x_

LANG _x_
LANG _x_ _μ_
stderr:
osh16 LC_CTYPE=invalid

stdout:
LC_CTYPE _x_
1 err.txt
stderr: