spec test index / oilshell.org
status | osh | |
pass | 9 | |
FAIL | 2 | |
total | 11 | |
case | osh | description |
0 | pass | Can read from ENV Obj |
1 | pass | ENV works in different modules |
2 | pass | bin/ysh doesn't have exported vars (declare -x) |
3 | FAIL | Temp bindings A=a B=b my-command push to ENV Obj (ysh:all) |
details | ||
4 | FAIL | Nested temp bindings |
details | ||
5 | pass | setglobal ENV.PYTHONPATH = 'foo' changes child process state |
6 | pass | export builtin is disabled in ysh:all, in favor of setglobal |
7 | pass | ysh:upgrade can use both export builtin and setglobal ENV |
8 | pass | PS4 environment variable is respected |
9 | pass | ENV.HOME is respected |
10 | pass | exec builtin respects ENV |
9 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 38356: 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 38362: command.Simple failed with status 1 env | egrep 'AA|BB' ^~~~~ [ stdin ]:20: errexit PID 38362: command.Pipeline failed with status 1 |