/home/uke/oil/bin/osh
spec test index / oilshell.org
| status | osh | |
| pass | 12 | |
| FAIL | 1 | |
| total | 13 | |
| case | osh | description |
| 0 | pass | sh -c |
| 1 | pass | empty -c input |
| 2 | pass | sh +c is accepted |
| 3 | pass | empty stdin |
| 4 | FAIL | shell obeys --help (regression for OSH) |
| details | ||
| 5 | pass | args are passed |
| 6 | pass | args that look like flags are passed after script |
| 7 | pass | args that look like flags are passed after -c |
| 8 | pass | exit with explicit arg |
| 9 | pass | exit with no args |
| 10 | pass | --rcfile in non-interactive shell prints warnings |
| 11 | pass | accepts -l flag |
| 12 | pass | accepts --login flag (dash and mksh don't accept long flags) |
12 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
| 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 shell obeys --help (regression for OSH) [osh stderr] Found 'Traceback (most recent' stdout: yesstderr: Traceback (most recent call last):
File "/home/uke/oil/bin/oils_for_unix.py", line 198, in <module>
sys.exit(main(sys.argv))
File "/home/uke/oil/bin/oils_for_unix.py", line 170, in main
return AppBundleMain(argv)
File "/home/uke/oil/bin/oils_for_unix.py", line 140, in AppBundleMain
return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
File "/home/uke/oil/core/shell.py", line 320, in Main
util.HelpFlag(loader, '%s-usage' % lang, mylib.Stdout())
File "/home/uke/oil/core/util.py", line 161, in HelpFlag
assert found, 'Missing %s' % topic_id
AssertionError: Missing osh-usage
|
| osh | 5 args are passed stdout: ['a', 'b']stderr: |
| osh | 6 args that look like flags are passed after script stdout: ['--help', '--help', '-h']stderr: |
| osh | 7 args that look like flags are passed after -c stdout: ['--help', '-h']stderr: |
| osh | 8 exit with explicit arg stdout: stderr: |
| osh | 9 exit with no args stdout: stderr: |
| osh | 10 --rcfile in non-interactive shell prints warnings stdout: rc ^D ==> interactive.txt <== osh-0.22.0$ ==> non-interactive.txt <== osh warning: --rcfile ignored with --norc osh warning: --rcfile ignored in non-interactive shellstderr: warned=1 warned=0 |
| osh | 11 accepts -l flag stdout: stderr: |
| osh | 12 accepts --login flag (dash and mksh don't accept long flags) stdout: stderr: |