spec test index / oilshell.org
0 passed, 0 OK, 0 not implemented, 0 BUG, 14 failed, 0 timeouts, 0 cases skipped 14 failed under osh
osh | 0 Can read from ENV Obj [osh stdout] Expected '(Str) "Obj"\nok\n', got '' [osh status] Expected 0, got 1 [osh 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_ |
osh | 1 ENV works in different modules [osh stdout] Expected 'env.ysh\nOSH ok\n', got '' [osh status] Expected 0, got 1 [osh 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_ |
osh | 2 bin/ysh doesn't have exported vars (declare -x) [osh stdout] Expected 'OSH ok\nsh=null\n', got '' [osh status] Expected 0, got 1 [osh 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_ |
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 [osh 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_ |
osh | 4 Nested temp bindings [osh stdout] Expected '> f1 AA=a\n f2 AA=aaaa BB=bb\nAA=aaaa\nBB=bb\n< f1 AA=a\n\n> p1 AA=a\n p2 AA=aaaa BB=bb\nAA=aaaa\nBB=bb\n< p1 AA=a\n\n> p1 AA=a\n p2 AA=aaaa BB=bb\nAA=aaaa\nBB=bb\n< p1 AA=a\n' Got '' [osh status] Expected 0, got 1 [osh 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_ |
osh | 5 Temp bindings can use locals in the same frame,(don't introduce new frame) [osh stdout] Expected 'shfunc x=zzz FOO=\nshfunc x=zzz FOO=zzz\n\nysh x=zzz FOO= ENV.FOO=null\nysh x=zzz FOO= ENV.FOO=zzz\nysh x=zzz FOO= ENV.FOO=zzz\n' Got '' [osh status] Expected 0, got 1 [osh 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_ |
osh | 6 setglobal ENV.PYTHONPATH = 'foo' changes child process state [osh stdout] Expected 'pythonpath=foo\n', got '' [osh status] Expected 0, got 1 [osh 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_ |
osh | 7 export builtin is disabled in ysh:all, in favor of setglobal [osh stdout] Expected 'ZZ=setglobal\n', got '' [osh 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_ |
osh | 8 ysh:upgrade can use both export builtin and setglobal ENV [osh stdout] Expected 'ZZ=export\nZZ=setglobal\n', got '' [osh status] Expected 0, got 1 [osh 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_ |
osh | 9 PS4 environment variable is respected [osh stdout] Expected '1\n2\n', got '' [osh stderr] Expected '%%% echo 1\n%%% echo 2\n', got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [osh status] Expected 0, got 1 [osh 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_ |
osh | 10 ENV.HOME is respected [osh stdout] Expected 'zz-osh/src\nysh-zz/src\n', got '' [osh status] Expected 0, got 1 [osh 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_ |
osh | 11 exec builtin respects ENV [osh stdout] Expected 'child ZZ=zz\nexec ZZ=zz\n', got '' [osh status] Expected 0, got 1 [osh 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_ |
osh | 12 setglobal quirk - do we need setenv? [osh stdout] Expected '(Null) null\n(Str) "perm"\n', got '' [osh status] Expected 0, got 1 [osh 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_ |
osh | 13 try to corrupt ENV var from user code [osh stdout] Expected "(Str) 'aa'\n", got '' [osh status] Expected 0, got 1 [osh 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_ |