spec test index / oilshell.org
status | osh | osh_ALT | |
pass | 9 | 9 | |
FAIL | 2 | 2 | |
total | 11 | 11 | |
case | osh | osh_ALT | description |
0 | pass | pass | Can read from ENV Obj |
1 | pass | pass | ENV works in different modules |
2 | pass | pass | bin/ysh doesn't have exported vars (declare -x) |
3 | FAIL | FAIL | Temp bindings A=a B=b my-command push to ENV Obj (ysh:all) |
details | details | ||
4 | FAIL | FAIL | Nested temp bindings |
details | details | ||
5 | pass | pass | setglobal ENV.PYTHONPATH = 'foo' changes child process state |
6 | pass | pass | export builtin is disabled in ysh:all, in favor of setglobal |
7 | pass | pass | ysh:upgrade can use both export builtin and setglobal ENV |
8 | pass | pass | PS4 environment variable is respected |
9 | pass | pass | ENV.HOME is respected |
10 | pass | pass | exec builtin respects ENV |
18 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
osh | 3 Temp bindings A=a B=b my-command push to ENV Obj (ysh:all) [osh stdout] Expected '_A=a\n_B=b\n', got '' [osh status] Expected 0, got 1 stdout: stderr: _A=a _B=b env | grep '^_' | sort ^~~~ [ stdin ]:3: errexit PID 40759: command.Pipeline failed with status 1 |
osh_ALT | 3 Temp bindings A=a B=b my-command push to ENV Obj (ysh:all) [osh_ALT stdout] Expected '_A=a\n_B=b\n', got '' [osh_ALT status] Expected 0, got 1 stdout: stderr: _A=a _B=b env | grep '^_' | sort ^~~~ [ stdin ]:3: errexit PID 40765: command.Pipeline failed with status 1 |
osh | 4 Nested temp bindings [osh stdout] Expected '', got '> f1 AA=a\n f2 AA=aaaa BB=bb\nAA=aaaa\nBB=bb\n< f1 AA=a\n\n> p1 AA=null\n p2 AA=null BB=null\nAA=aaaa\nBB=bb\n< p1 AA=null\n\n> p1 AA=null\n p2 AA=null BB=null\n' [osh status] Expected 0, got 1 stdout: > f1 AA=a f2 AA=aaaa BB=bb AA=aaaa BB=bb < f1 AA=a > p1 AA=null p2 AA=null BB=null AA=aaaa BB=bb < p1 AA=null > p1 AA=null p2 AA=null BB=nullstderr: env | egrep 'AA|BB' ^~~~~ [ stdin ]:20: errexit PID 40769: command.Simple failed with status 1 env | egrep 'AA|BB' ^~~~~ [ stdin ]:20: errexit PID 40769: command.Pipeline failed with status 1 |
osh_ALT | 4 Nested temp bindings [osh_ALT stdout] Expected '', got '> f1 AA=a\n f2 AA=aaaa BB=bb\nAA=aaaa\nBB=bb\n< f1 AA=a\n\n> p1 AA=null\n p2 AA=null BB=null\nAA=aaaa\nBB=bb\n< p1 AA=null\n\n> p1 AA=null\n p2 AA=null BB=null\n' [osh_ALT status] Expected 0, got 1 stdout: > f1 AA=a f2 AA=aaaa BB=bb AA=aaaa BB=bb < f1 AA=a > p1 AA=null p2 AA=null BB=null AA=aaaa BB=bb < p1 AA=null > p1 AA=null p2 AA=null BB=nullstderr: env | egrep 'AA|BB' ^~~~~ [ stdin ]:20: errexit PID 40778: command.Simple failed with status 1 env | egrep 'AA|BB' ^~~~~ [ stdin ]:20: errexit PID 40778: command.Pipeline failed with status 1 |