Results for sh-usage.test.sh

statusoshosh-cpp
pass 1615
ok 11
FAIL 01
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 FAIL shell obeys --help (regression for OSH)
details
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
31 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
osh-cpp5 shell obeys --help (regression for OSH)

[osh-cpp stdout] Expected 'yes\n' Got ''
[osh-cpp status] Expected 0 Got 2

stdout:
stderr: 
  n=$($SH --help | wc -l)
                        ^
[ stdin ]:1: Invalid word while parsing command list