Results for sh-usage.test.sh

statusoshosh-cpp
pass 1616
ok 11
total1717
caseoshosh-cppdescription
0pass pass sh -c
1pass pass empty -c input
2pass pass sh +c is accepted
3pass pass empty stdin
4ok ok sh - and sh -- stop flag processing
detailsdetails
5pass pass shell obeys --help (regression for OSH)
6pass pass args are passed
7pass pass args that look like flags are passed after script
8pass pass args that look like flags are passed after -c
9pass pass exit with explicit arg
10pass pass exit with no args
11pass pass --rcfile in non-interactive shell prints warnings
12pass pass accepts -l flag
13pass pass accepts --login flag (dash and mksh don't accept long flags)
14pass pass osh --eval
15pass pass Set LC_ALL LC_CTYPE LC_COLLATE LANG - affects glob ?
16pass pass LC_CTYPE=invalid
32 passed, 2 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh4 sh - and sh -- stop flag processing

stdout:
foo
-
foo
stderr:
+ echo foo
-
+ echo foo
osh-cpp4 sh - and sh -- stop flag processing

stdout:
foo
-
foo
stderr:
+ echo foo
-
+ echo foo