spec test index / oilshell.org
41 passed, 0 OK, 0 not implemented, 0 BUG, 11 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh-cpp | 9 setglobal still allows setting globals [osh-cpp stdout] Expected 'g=p new_global=p\n', got 'g= new_global=\n' stdout: g= new_global=stderr: |
osh-cpp | 10 setref with out Ref param [osh-cpp stdout] Expected 'foo-SS\nfoo-TT\n', got '' [osh-cpp status] Expected 0, got 2 stdout: stderr: proc set-it(s Ref, val) { ^~~ [ stdin ]:3: proc param types should be Ref, Expr, or Block |
osh-cpp | 11 setref with conflicting variable name [osh-cpp stdout] Expected 'oops=foo-zz\n', got '' [osh-cpp status] Expected 0, got 2 stdout: stderr: proc set-it(s Ref, val) { ^~~ [ stdin ]:3: proc param types should be Ref, Expr, or Block |
osh-cpp | 12 setref of regular param is a fatal error [osh-cpp status] Expected 1, got 2 stdout: stderr: proc set-it(s Ref, val) { ^~~ [ stdin ]:3: proc param types should be Ref, Expr, or Block |
osh-cpp | 13 setref equivalent without pgen2 syntax, using open proc [osh-cpp stdout] Expected 'foo-SS\nfoo-TT\n', got '\n\n' stdout: stderr: |
osh-cpp | 14 setref a, b = 'one', 'two' [osh-cpp stdout] Expected 'c=foo1 d=foo2\n', got '' [osh-cpp status] Expected 0, got 2 stdout: stderr: proc p(x, a Ref, b Ref) { ^~~ [ stdin ]:3: proc param types should be Ref, Expr, or Block |
osh | 15 setref a[i] [osh stdout] Expected 'a\nz\nc\n', got '' [osh status] Expected 0, got 2 stdout: stderr: proc set1(:a, item) { ^~~~ [ stdin ]:1: Enable YSH to use procs (parse_proc) |
osh-cpp | 15 setref a[i] [osh-cpp stdout] Expected 'a\nz\nc\n', got '' [osh-cpp status] Expected 0, got 2 stdout: stderr: proc set1(:a, item) { ^~~~ [ stdin ]:1: Enable YSH to use procs (parse_proc) |
osh-cpp | 19 cd blocks don't introduce new scopes [osh-cpp stdout] Expected '42 0 1\n42 43 44\n', got '' [osh-cpp status] Expected 0, got 1 stdout: stderr: echo $x $y $z ^~ [ stdin ]:6: fatal: Undefined variable 'x' |
osh-cpp | 23 shvar local [osh-cpp stdout] Expected "['a', 'b', 'c']\nIFS=x\n['a b c']\nMYTEMP=foo\n['a', 'b', 'c']\nMYTEMP=undef\n" Got '' [osh-cpp status] Expected 0, got 1 stdout: stderr: argv.py $s ^~ [ stdin ]:12: fatal: Undefined variable 's' |
osh-cpp | 25 shvar_get() [osh-cpp stdout] Expected "wrong IFS=x\nshvar IFS=z\n['x', 'x ', 'x']\n" Got "wrong IFS=x\nshvar IFS=\n['x', 'x ', 'x']\n" stdout: wrong IFS=x shvar IFS= ['x', 'x ', 'x']stderr: |