spec test index / oilshell.org
| status | osh | |
| pass | 16 | |
| FAIL | 2 | |
| total | 18 | |
| case | osh | description |
| 0 | pass | cd accepts a block, runs it in different dir |
| 1 | pass | cd with block: requires explicit command |
| 2 | pass | cd with block: fatal error in block |
| 3 | pass | cd with block: return in block |
| 4 | pass | cd with block: break in block |
| 5 | pass | cd with block exits with status 0 |
| 6 | pass | block doesn't have its own scope |
| 7 | pass | redirects allowed in words, typed args, and after block |
| 8 | pass | block literal in expression mode: ^(echo $PWD) |
| 9 | pass | block arg as typed expression |
| 10 | pass | Pass invalid typed args |
| 11 | pass | Pass too many typed args |
| 12 | pass | 'builtin' and 'command' with block |
| 13 | FAIL | Consistency: Control Flow and Blocks |
| details | ||
| 14 | FAIL | Consistency: Exit Status and Blocks |
| details | ||
| 15 | pass | Consistency: Unwanted Blocks Are Errors |
| 16 | pass | Block with Bare Assignments |
| 17 | pass | Proc that doesn't take a block |
16 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
| osh | 13 Consistency: Control Flow and Blocks [osh stdout] Expected 'cd\ncd no loop 0\ncd\ncd loop 1\nshopt\nshopt continue 1\nshvar\nshvar continue 1\ntry\ntry break 1\n' Got 'cd\ncd no loop 0\ncd\ncd loop 1\nshopt\nshopt continue 1\nshvar continue 1\ntry\ntry break 1\n' stdout: cd cd no loop 0 cd cd loop 1 shopt shopt continue 1 shvar continue 1 try try break 1stderr: break
^~~~~
[ eval word at line 3 of [ stdin ] ]:4
eval '
^~~~
[ stdin ]:3: warning: Invalid control flow at top level
break
^~~~~
[ eval word at line 11 of [ stdin ] ]:5
eval '
^~~~
[ stdin ]:11: fatal: Unexpected control flow in block
continue
^~~~~~~~
[ eval word at line 21 of [ stdin ] ]:5
eval '
^~~~
[ stdin ]:21: fatal: Unexpected control flow in block
proc shvar (...args;;; block) {
^~~~
stdlib/ysh/shvar.ysh:1: proc is a YSH keyword, but this is OSH.
shvar FOO=foo {
^
[ eval word at line 31 of [ stdin ] ]:5
eval '
^~~~
[ stdin ]:31: fatal: 'shvar' appears to be external. External commands don't accept typed args (OILS-ERR-200)
break
^~~~~
[ eval word at line 44 of [ stdin ] ]:5
eval '
^~~~
[ stdin ]:44: fatal: Unexpected control flow in block
|
| osh | 14 Consistency: Exit Status and Blocks [osh stdout] Expected 'cd=0\nshopt=0\n FOO=foo\nshvar=0\ntry=0\n', got 'cd=0\nshopt=0\n' [osh status] Expected 0, got 1 stdout: cd=0 shopt=0stderr: proc shvar (...args;;; block) {
^~~~
stdlib/ysh/shvar.ysh:1: proc is a YSH keyword, but this is OSH.
shvar FOO=foo {
^
[ stdin ]:15: fatal: 'shvar' appears to be external. External commands don't accept typed args (OILS-ERR-200)
|