spec test index / oilshell.org
0 passed, 0 OK, 0 not implemented, 0 BUG, 26 failed, 0 timeouts, 0 cases skipped 26 failed under osh
ysh | 0 eval builtin does not take a literal block - can restore this later [ysh stdout] Expected 'obj\ncommand literal\n', got '' [ysh status] Expected 2, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 1 Eval a block within a proc [ysh stdout] Expected 'In a block!\n', got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 2 Eval block created by calling a proc [ysh stdout] Expected '0\n1\n', got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 3 io->eval with argv bindings [ysh stdout] Expected 'foo bar baz\n(List) ["foo","bar","baz"]\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 4 eval lines with argv bindings [ysh stdout] Expected 'b a\nd c\nb a mylocal\nd c mylocal\n\nb a local2\nd c local2\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 5 eval lines with var bindings [ysh stdout] Expected 'a b | a mylocal\nc d | c mylocal\n\na b | a local2\nc d | c local2\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 6 eval with custom dollar0 [ysh stdout] Expected 'my arg0\n', got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 7 eval with vars bindings [ysh stdout] Expected '(Str) "abc"\n(Str) "123"\n(Str) "abc"\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 8 dynamic binding names and mutation [ysh stdout] Expected '(Dict) {"a":1,"z":"z"}\n(Dict) {"b":2,"z":"z"}\n(Dict) {"c":3,"z":"z"}\n\n(Dict) {"a":1,"z":"z","d":0}\n(Dict) {"b":2,"z":"z","d":0}\n(Dict) {"c":3,"z":"z","d":0}\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 9 binding procs in the eval-ed namespace [ysh stdout] Expected 'flag -h --help\narg file\n', got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 10 vars initializes the variable frame, but does not remember it [ysh stdout] Expected '(Dict) {"foo":123}\n', got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 11 eval pos_args must be strings [ysh status] Expected 3, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 12 eval with vars follows same scoping as without [ysh stdout] Expected 'baz\nbaz\nfoo\nfoo\n', got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 13 eval 'mystring' vs. call io->eval(myblock) [ysh stdout] Expected 'plain\nplain=0\nplain\nplain=0\n\none\n(Dict) {"code":1}\none\n(Dict) {"code":1}\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 14 io->evalToDict() - local and global [ysh stdout] Expected '(Dict) {"foo":42,"bar":"global"}\n(Dict) {"foo":42,"g":"-global","p":"-param","L":"-local"}\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 15 parseCommand then io->evalToDict() - in global scope [ysh stdout] Expected '<Command>\nhi\n(Dict) {"x":42,"y":"global"}\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 16 parseCommand with syntax error [ysh stdout] Expected '(Dict) {"code":3,"message":"Syntax error in parseCommand()"}\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 17 Dict (&d) { ... } converts frame to dict [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 18 block in Dict (&d) { ... } can read from outer scope [ysh stdout] Expected '(Dict) {"y":43}\n', got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 19 block in yb-capture Dict (&d) can read from outer scope [ysh stdout] Expected '(Dict) {"status":0,"stdout":"43\\n"}\n', got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 20 Dict (&d) and setvar [ysh stdout] Expected 'Dict proc global outer=xx\ninside Dict outer=xx\n(Dict) {"outer2":"outer2","not_declared":"yy"}\nafter Dict outer=zz\n\nDict proc global outer=zz\n(Dict) {"p":99}\n[p] after Dict outer=p-outer-mutated\nafter p outer=zz\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 21 Dict (&d) and setglobal [ysh stdout] Expected ' [frame_vars_] __E__ a\n\n(Dict) {"a":42}\ng=zz\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 22 bindings created shvar persist, which is different than evalToDict() [ysh stdout] Expected 'a=b\na=a\ninner=z\ninner2=z\n', got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 23 io->evalInFrame() can express try, cd builtins [ysh stdout] Expected 'x: i = 0, j = 2\nx: i = 1, j = 3\nx: i = 2, j = 4\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 24 parseCommand(), io->evalInFrame(frag, frame) can behave like eval $mystr [ysh stdout] Expected 'mylocal=42\nmylocal=99\n', got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 25 eval should have a sandboxed mode [ysh stdout] Expected 'TODO\n', got '' [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |