Results for sh-usage.test.sh

statusoshosh-cpp
pass 2323
ok 11
total2424
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
17pass pass sh -c -- 'echo hi' does not run anything (#2637)
18pass pass sh -c with multiple -- args
19pass pass sh -c with no arg after --
20pass pass Other flag parsers are not affected by - rule
21pass pass weird flag parsing -oo errexit noglob
22pass pass 'sh -c -z' does not try to run -z
23pass pass sh -c -x 'echo hi' - order is reversed
46 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