spec test index / oilshell.org
0 passed, 0 OK, 0 not implemented, 0 BUG, 38 failed, 0 timeouts, 0 cases skipped 38 failed under osh
osh | 0 simple_word_eval doesn't split, glob, or elide empty [osh stdout] Expected "['a', 'b', 'bar.z', 'foo.z', 'spam.z', 'spam.z']\n['-x y', 'z-']\n['a b', '*.z', '', 'spam.z']\n['-x y', 'z-']\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 simple_word_eval and strict_array conflict over globs [osh stdout] Expected "['foo.txt']\n['foo.txt']\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 | 2 simple_word_eval and glob [osh stdout] Expected '1.ff\n2.ff\n1.ff 2.ff\n1.ff 2.ff\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 parse_at [osh stdout] Expected "['@words']\n['a', 'b c']\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 parse_at can't be used outside top level [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 sourcing a file that sets parse_at [osh stdout] Expected "['@words']\nlib.sh\nmain.sh\n['a', 'b c']\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 parse_at can be specified through sh -O [osh stdout] Expected "['@words']\n['a', 'b c']\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 @a splices into $0 [osh stdout] Expected 'hi\nhi\nhi\nhi\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 | 8 shopt -s strict:all [osh stdout] Expected 'shopt -s strict_argv\nshopt -s strict_arith\nshopt -s strict_array\nshopt -s strict_control_flow\nshopt -s strict_errexit\nshopt -s strict_glob\nshopt -s strict_nameref\nshopt -s strict_parse_slice\nshopt -s strict_tilde\nshopt -s strict_word_eval\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 shopt -s ysh:upgrade [osh stdout] Expected 'set -o errexit\nset -o nounset\nset -o pipefail\nshopt -s command_sub_errexit\nshopt -u dashglob\nshopt -s env_obj\nshopt -s errexit\nshopt -s inherit_errexit\nshopt -s nounset\nshopt -s nullglob\nshopt -s parse_at\nshopt -s parse_brace\nshopt -s parse_bracket\nshopt -s parse_equals\nshopt -s parse_func\nshopt -s parse_paren\nshopt -s parse_proc\nshopt -s parse_triple_quote\nshopt -s parse_ysh_string\nshopt -s pipefail\nshopt -s process_sub_fail\nshopt -s sigpipe_status_ok\nshopt -s simple_word_eval\nshopt -s verbose_errexit\nshopt -u xtrace_details\nshopt -s xtrace_rich\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 | 10 osh -O oil:upgrade [osh stdout] Expected 'one\ntwo\nthree\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 osh -O errexit: use -O everywhere, even for Bourne options [osh stdout] Expected 'set -o errexit\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 osh -O invalid [osh stdout] Expected 'hi\nstatus=0\nstatus=2\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 osh -o new_option is also accepted [osh stdout] Expected 'nullglob\n0 flag nullglob\nupgrade\n0 flag oil:upgrade\n2 set builtin nullglob\n2 set builtin oil:upgrade\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 | 14 oil:upgrade includes inherit_errexit [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 | 15 parse_brace: bad block to assignment builtin [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 | 16 parse_brace: bad block to external program [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 | 17 parse_brace: cd { } in pipeline [osh stdout] Expected '/TMP\n/TMP\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 | 18 parse_brace: if accepts blocks [osh stdout] Expected 'one\ntwo\nthree\nelse\nelif\none line\n1\n2\nsh syntax\n1\n2\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 | 19 parse_brace: brace group in if condition [osh stdout] Expected 'one\ntwo\nthree\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 | 20 parse_brace: while/until [osh stdout] Expected 'one\ntwo\nsh syntax\nthree\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 | 21 parse_brace: for-in loop [osh stdout] Expected 'one\ntwo\nthree\nsh syntax\nfour\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 | 22 parse_brace case [osh stdout] Expected 'python\nshell\npython\nshell\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 | 23 parse_paren: if statement [osh stdout] Expected 'less\nless\nother\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 | 24 parse_paren: while statement [osh stdout] Expected '1\n2\ndone ksh\n1\n2\ndone sh\n1\n2\ndone oil\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 | 25 while subshell without parse_paren [osh stdout] Expected 'one\ntwo\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 | 26 nullglob is on with oil:upgrade [osh stdout] Expected 'one\n*.zzz\ntwo\n__\none\ntwo\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 | 27 nullglob is on with oil:all [osh stdout] Expected 'one\n*.zzz\ntwo\n__\none\ntwo\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 | 28 shopt -s simple_echo [osh stdout] Expected 'one two\n\none two\none two\n-e one two\n-n one two\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 | 29 shopt -s dashglob [osh stdout] Expected "['-v', 'file']\n['file']\n['-v', 'file']\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 | 30 shopt -s oil:upgrade turns some options on and others off [osh stdout] Expected 'shopt -s dashglob\nshopt -u simple_word_eval\n---\nshopt -s dashglob\nshopt -s simple_word_eval\n---\nshopt -u dashglob\nshopt -s simple_word_eval\n---\nshopt -s dashglob\nshopt -u simple_word_eval\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 | 31 sigpipe_status_ok [osh stdout] Expected 'y\n141 0\n141 141\ny\n0 0\n0 141\nbackground\nstatus=0 pipestatus=0 141\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 | 32 printf | head regression (sigpipe_status_ok) [osh stdout] Expected ' external on 0 0\n external off 141 0\n builtin on 0 0\n builtin off 141 0\nfinished\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 | 33 redefine_proc is on in interactive shell [osh stdout] Expected 'common\nredefinition\n', got '' [osh stderr] Expected 'hi\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 | 34 redefine_source is on in interactive shell [osh stdout] Expected 'common\ncommon\nstatus=0\n2 stderr.txt\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 | 35 parse options in sourced file (bug #1628) [osh stdout] Expected 'OK\nalias on\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 | 36 expand_aliases turned off only in ysh:all [osh stdout] Expected 'normal\nupgrade\n', got '' [osh status] Expected 127, 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 | 37 [[ isn't allowed in ysh [osh stdout] Expected 'status=0\nstatus=0\n', got '' [osh status] Expected 2, 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_ |