spec test index / oilshell.org
status | osh | |
pass | 14 | |
FAIL | 2 | |
total | 16 | |
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 passed block with return 1 |
3 | FAIL | cd passed a block defined in a different scope |
details | ||
4 | FAIL | io->eval() and io.captureStdout() passed a block in different scope |
details | ||
5 | pass | block doesn't have its own scope |
6 | pass | redirects allowed in words, typed args, and after block |
7 | pass | block literal in expression mode: ^(echo $PWD) |
8 | pass | block arg as typed expression |
9 | pass | Pass invalid typed args |
10 | pass | Pass too many typed args |
11 | pass | 'builtin' and 'command' with block |
12 | pass | Consistency: Exit Status and Blocks |
13 | pass | Consistency: Unwanted Blocks Are Errors |
14 | pass | Block with Bare Assignments |
15 | pass | Proc that doesn't take a block |
14 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
osh | 3 cd passed a block defined in a different scope [osh status] Expected 0, got 1 stdout: stderr: var b = ^(echo "i = $i") ^~ [ stdin ]:9: fatal: Undefined variable 'i' |
osh | 4 io->eval() and io.captureStdout() passed a block in different scope [osh stdout] Expected '', got 'i = 42\ni = 42\n(Dict) {"x":"x"}\nstdout i = 42\n' stdout: i = 42 i = 42 (Dict) {"x":"x"} stdout i = 42stderr: |