/home/uke/oil/bin/osh
| status | osh | |
| pass | 23 | |
| ok | 1 | |
| total | 24 | |
| case | osh | description |
| 0 | pass | sh -c |
| 1 | pass | empty -c input |
| 2 | pass | sh +c is accepted |
| 3 | pass | empty stdin |
| 4 | ok | sh - and sh -- stop flag processing |
| details | ||
| 5 | pass | shell obeys --help (regression for OSH) |
| 6 | pass | args are passed |
| 7 | pass | args that look like flags are passed after script |
| 8 | pass | args that look like flags are passed after -c |
| 9 | pass | exit with explicit arg |
| 10 | pass | exit with no args |
| 11 | pass | --rcfile in non-interactive shell prints warnings |
| 12 | pass | accepts -l flag |
| 13 | pass | accepts --login flag (dash and mksh don't accept long flags) |
| 14 | pass | osh --eval |
| 15 | pass | Set LC_ALL LC_CTYPE LC_COLLATE LANG - affects glob ? |
| 16 | pass | LC_CTYPE=invalid |
| 17 | pass | sh -c -- 'echo hi' does not run anything (#2637) |
| 18 | pass | sh -c with multiple -- args |
| 19 | pass | sh -c with no arg after -- |
| 20 | pass | Other flag parsers are not affected by - rule |
| 21 | pass | weird flag parsing -oo errexit noglob |
| 22 | pass | 'sh -c -z' does not try to run -z |
| 23 | pass | sh -c -x 'echo hi' - order is reversed |
23 passed, 1 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
| osh | 0 sh -c stdout: histderr: |
| osh | 1 empty -c input stdout: stderr: |
| osh | 2 sh +c is accepted stdout: histderr: |
| osh | 3 empty stdin stdout: stderr: |
| osh | 4 sh - and sh -- stop flag processing stdout: foo - foostderr: + echo foo - + echo foo |
| osh | 5 shell obeys --help (regression for OSH) stdout: yesstderr: |
| osh | 6 args are passed stdout: ['a', 'b']stderr: |
| osh | 7 args that look like flags are passed after script stdout: ['--help', '--help', '-h']stderr: |
| osh | 8 args that look like flags are passed after -c stdout: ['--help', '-h']stderr: |
| osh | 9 exit with explicit arg stdout: stderr: |
| osh | 10 exit with no args stdout: stderr: |
| osh | 11 --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 shellstderr: warned=1 warned=0 |
| osh | 12 accepts -l flag stdout: stderr: |
| osh | 13 accepts --login flag (dash and mksh don't accept long flags) stdout: stderr: |
| osh | 14 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=0stderr: |
| osh | 15 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: |
| osh | 16 LC_CTYPE=invalid stdout: LC_CTYPE _x_ 1 err.txtstderr: |
| osh | 17 sh -c -- 'echo hi' does not run anything (#2637) stdout: z failed three failed two two=0 one one=0 zero=0 aa aa=0stderr: osh usage error: got invalid flag '-z' osh usage error: got invalid flag '---' |
| osh | 18 sh -c with multiple -- args stdout: status=127 status=127 z failedstderr: -- ^~ [ -c flag ]:1: Command '--' not found (OILS-ERR-100) -- ^~ [ -c flag ]:1: Command '--' not found (OILS-ERR-100) osh usage error: got invalid flag '-z' |
| osh | 19 sh -c with no arg after -- stdout: failed failedstderr: osh usage error: expected argument to '-c' osh usage error: expected argument to '-c' |
| osh | 20 Other flag parsers are not affected by - rule stdout: reply=foostderr: |
| osh | 21 weird flag parsing -oo errexit noglob stdout: e f e fstderr: |
| osh | 22 'sh -c -z' does not try to run -z stdout: flag-parsing-error 0=-z 1= status=0 0=foo 1=-z status=0stderr: osh usage error: got invalid flag '-z' |
| osh | 23 sh -c -x 'echo hi' - order is reversed stdout: hi status=127stderr: + echo hi |