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 Unquoted backslash escapes, as in J8 strings [ysh stdout] Expected '(Str) "\\n"\n(Str) "\\t"\n(Str) "\\r"\n(Str) "\\"\'\\\\"\nbackslash \\\nbackslash \\\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 | 1 Unquoted \u{3bc} escape [ysh stdout] Expected 'mu \xce\xbc\nmu \xce\xbc\nmu \xce\xbc\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 Unquoted \y24 escape [ysh stdout] Expected 'foo $\n36\nfoo @\nfoo A\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 single quoted -- implicit and explicit raw [ysh stdout] Expected 'foo bar\nfoo bar\n\\t\\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 | 4 Implicit raw single quote with backslash is a syntax error [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 | 5 $"foo $x" to make "foo $x" explicit [ysh stdout] Expected 'foo bar\nequal\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 single quoted C strings: $'foo\n' [ysh stdout] Expected 'foo\nbar\nequal\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 raw strings and J8 strings don't work in OSH [ysh stdout] Expected 'rhello \\\numu \\u{3bc}\nbbyte \\yff\n--\nr\nraw multi\n\nu\nu multi\n\nb\nb multi\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 | 8 J8-style u'' and b'' strings in expression mode [ysh stdout] Expected ' ce bc\n ff\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 J8-style u'' and b'' strings in command mode [ysh stdout] Expected ' ce bc\n ff\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 J8-style multi-line strings u''' b''' in command mode [ysh stdout] Expected '--\na\n--\n--\nb\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 | 11 Double Quoted [ysh stdout] Expected 'Hello World\nHello World\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 | 12 Multiline strings with '' and "" [ysh stdout] Expected '\n single\n\n\n double 42\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 | 13 C strings in :| | array literals [ysh stdout] Expected 'aa\tbb\ncc\tdd\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 shopt parse_ysh_string [ysh stdout] Expected '\\\nr\n\nend\nra\\\nraw\\\nr\\\nunset\nr\\\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 Special rule for <<< ''' and <<< """ - no extra newline [ysh stdout] Expected '(Str) "unquoted\\n"\n(Str) "single with newline\\n"\n(Str) "double with newline\\n"\n(Str) "j8 with newline\\n"\n\n(Str) "multi\\nsingle\\n"\n(Str) "multi\\ndouble\\n"\n(Str) "multi\\nj8\\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 | 16 $''' isn't a a multiline string (removed) [ysh stdout] Expected '\n foo\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 | 17 """ and $""" in Expression Mode [ysh stdout] Expected 'line1=line1\nline2=line2\n[one "\ntwo = 2 ""\n three = 3\n]\n[good\n bad 42\n]\n[good\n bad 42\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 | 18 ''' in Expression Mode [ysh stdout] Expected "[two = $two '\nthree = $three ''\n \\u{61}\n]\n[two = $two '\nthree = $three ''\n a\n]\n[two = $two '\nthree = $three ''\n a a\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 | 19 """ and $""" in Command Mode [ysh stdout] Expected 'a\n--\none "\ntwo = 2 ""\nthree = 3\n\n--\none "\ntwo = 2 ""\nthree = 3\n\n--\nthree = 3\ntwo = 2 ""\none "\n--\n\n one\n two = 2\n three = 3\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 ''' in Command Mode [ysh stdout] Expected "a\n--\ntwo = $two\n'\n'' '\n\\u{61}\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 | 21 r''' in Command Mode, Expression mode [ysh stdout] Expected '\\\n\\\nr\\\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 ''' in Here Doc [ysh stdout] Expected "\\u{61}\n'' '\n'\ntwo = $two\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 ''' without parse_triple_quote [ysh stdout] Expected '\n two = $two\n \\u{61}\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 | 24 here doc with quotes [ysh stdout] Expected '"hello"\n""\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 | 25 triple quoted and implicit concatenation [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_ |