spec test index / oilshell.org
38 passed, 0 OK, 0 not implemented, 0 BUG, 5 failed, 0 timeouts, 0 cases skipped 5 failed under osh
osh | 18 IFS=: myproc exports when it doesn't need to [osh stdout] Expected ":\n 20 09 0a 0a\nIFS= z\nmyfunc IFS= x\n['', 'z', 'z', 'z']\nmyproc IFS= z\n['', 'z', 'z', 'z']\nmyproc IFS= x\n['', 'z', 'z', 'z']\n" Got ":\n 20 09 0a 0a\nIFS= z\nmyfunc IFS= x\n['', 'z', 'z', 'z']\nmyproc IFS= z\n['', 'z', 'z', 'z']\n" [osh status] Expected 0, got 1 stdout: : 20 09 0a 0a IFS= z myfunc IFS= x ['', 'z', 'z', 'z'] myproc IFS= z ['', 'z', 'z', 'z']stderr: if (len(args) === 0) { ^ stdlib/ysh/shvar.ysh:3: Unexpected left paren (might need a space before it) shvar IFS=' x' { ^ [ stdin ]:30: fatal: 'shvar' appears to be external. External commands don't accept typed args (OILS-ERR-200) |
osh_ALT | 18 IFS=: myproc exports when it doesn't need to [osh_ALT stdout] Expected ":\n 20 09 0a 0a\nIFS= z\nmyfunc IFS= x\n['', 'z', 'z', 'z']\nmyproc IFS= z\n['', 'z', 'z', 'z']\nmyproc IFS= x\n['', 'z', 'z', 'z']\n" Got ":\n 20 09 0a 0a\nIFS= z\nmyfunc IFS= x\n['', 'z', 'z', 'z']\nmyproc IFS= z\n['', 'z', 'z', 'z']\n" [osh_ALT status] Expected 0, got 1 stdout: : 20 09 0a 0a IFS= z myfunc IFS= x ['', 'z', 'z', 'z'] myproc IFS= z ['', 'z', 'z', 'z']stderr: source --builtin ysh/shvar.ysh ^~~ [ stdin ]:4: source failed: No builtin file 'stdlib/ysh/shvar.ysh' shvar IFS=' x' { ^ [ stdin ]:30: fatal: 'shvar' appears to be external. External commands don't accept typed args (OILS-ERR-200) |
osh | 19 shvar usage [osh stdout] Expected 'status=2\nstatus=2\nstatus=2\n', got '' [osh status] Expected 0, got 3 stdout: stderr: shvar ^~~~~ [ stdin ]:6: fatal: 'shvar' wasn't passed block param 'block' |
osh_ALT | 19 shvar usage [osh_ALT stdout] Expected 'status=2\nstatus=2\nstatus=2\n', got 'status=127\n' [osh_ALT status] Expected 0, got 1 stdout: status=127stderr: source --builtin ysh/shvar.ysh ^~~ [ stdin ]:4: source failed: No builtin file 'stdlib/ysh/shvar.ysh' shvar ^~~~~ [ stdin ]:6: 'shvar' not found (OILS-ERR-100) shvar { # no arg ^ [ stdin ]:9: fatal: 'shvar' appears to be external. External commands don't accept typed args (OILS-ERR-200) |
osh | 20 shvar global [osh stdout] Expected '_ESCAPER=\n_DIALECT=\nblock _ESCAPER=html\nblock _DIALECT=ninja\n_ESCAPER=\n_DIALECT=\n___\n_ESCAPER=foo\n_DIALECT=bar\nblock _ESCAPER=html\nblock _DIALECT=ninja\nnested _ESCAPER=nested\nnested _DIALECT=ninja\n_ESCAPER=foo\n_DIALECT=bar\n' Got '_ESCAPER=\n_DIALECT=\nblock _ESCAPER=html\nblock _DIALECT=ninja\n_ESCAPER=\n_DIALECT=\n___\n_ESCAPER=foo\n_DIALECT=bar\nblock _ESCAPER=html\nblock _DIALECT=ninja\nnested _ESCAPER=nested\nnested _DIALECT=bar\n_ESCAPER=foo\n_DIALECT=bar\n' stdout: _ESCAPER= _DIALECT= block _ESCAPER=html block _DIALECT=ninja _ESCAPER= _DIALECT= ___ _ESCAPER=foo _DIALECT=bar block _ESCAPER=html block _DIALECT=ninja nested _ESCAPER=nested nested _DIALECT=bar _ESCAPER=foo _DIALECT=barstderr: |
osh_ALT | 20 shvar global [osh_ALT stdout] Expected '_ESCAPER=\n_DIALECT=\nblock _ESCAPER=html\nblock _DIALECT=ninja\n_ESCAPER=\n_DIALECT=\n___\n_ESCAPER=foo\n_DIALECT=bar\nblock _ESCAPER=html\nblock _DIALECT=ninja\nnested _ESCAPER=nested\nnested _DIALECT=ninja\n_ESCAPER=foo\n_DIALECT=bar\n' Got '' [osh_ALT status] Expected 0, got 2 stdout: stderr: source --builtin ysh/shvar.ysh ^~~ [ stdin ]:4: source failed: No builtin file 'stdlib/ysh/shvar.ysh' source --builtin ysh/shvar.ysh ^~~~~~ [ stdin ]:4: errexit PID 40535: command.Simple failed with status 2 |
osh | 21 shvar local [osh stdout] Expected "['a', 'b', 'c']\nIFS=x\n['a b c']\nMYTEMP=foo\n['a', 'b', 'c']\nMYTEMP=undef\n" Got "['a', 'b', 'c']\nIFS=x\n['foo']\nMYTEMP=foo\n['a', 'b', 'c']\nMYTEMP=undef\n" stdout: ['a', 'b', 'c'] IFS=x ['foo'] MYTEMP=foo ['a', 'b', 'c'] MYTEMP=undefstderr: |
osh_ALT | 21 shvar local [osh_ALT stdout] Expected "['a', 'b', 'c']\nIFS=x\n['a b c']\nMYTEMP=foo\n['a', 'b', 'c']\nMYTEMP=undef\n" Got '' [osh_ALT status] Expected 0, got 2 stdout: stderr: source --builtin ysh/shvar.ysh ^~~ [ stdin ]:4: source failed: No builtin file 'stdlib/ysh/shvar.ysh' source --builtin ysh/shvar.ysh ^~~~~~ [ stdin ]:4: errexit PID 40542: command.Simple failed with status 2 |
osh | 22 shvar IFS [osh stdout] Expected ' 20 09 0a 0a\ninside IFS=w\nmylocal=x\n 20 09 0a 0a\n' Got ' 20 09 0a 0a\ninside IFS=w\n' [osh status] Expected 0, got 1 stdout: 20 09 0a 0a inside IFS=wstderr: echo mylocal="$mylocal" # I do NOT want a new scope! ^~~~~~~~ [ stdin ]:11: fatal: Undefined variable 'mylocal' |
osh_ALT | 22 shvar IFS [osh_ALT stdout] Expected ' 20 09 0a 0a\ninside IFS=w\nmylocal=x\n 20 09 0a 0a\n' Got '' [osh_ALT status] Expected 0, got 2 stdout: stderr: source --builtin ysh/shvar.ysh ^~~ [ stdin ]:3: source failed: No builtin file 'stdlib/ysh/shvar.ysh' source --builtin ysh/shvar.ysh ^~~~~~ [ stdin ]:3: errexit PID 40548: command.Simple failed with status 2 |