spec test index / oilshell.org
35 passed, 3 OK, 0 not implemented, 0 BUG, 64 failed, 0 timeouts, 0 cases skipped 2 failed under osh
osh_.py | 0 Here string [osh_.py stdout] Expected u'hi\n', got '(cmd_value.Argv argv:[cat] arg_spids:[0])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[0])stderr: Unhandled SimpleCommand |
osh_.cc | 0 Here string [osh_.cc stdout] Expected u'hi\n', got '(cmd_value.Argv argv:[cat] arg_spids:[0])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[0])stderr: Unhandled SimpleCommand |
osh_.py | 1 Here string with $ [osh_.py stdout] Expected u'one\ntwo\n\n', got '(cmd_value.Argv argv:[cat] arg_spids:[0])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[0])stderr: Unhandled SimpleCommand |
osh_.cc | 1 Here string with $ [osh_.cc stdout] Expected u'one\ntwo\n\n', got '(cmd_value.Argv argv:[cat] arg_spids:[0])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[0])stderr: Unhandled SimpleCommand |
osh_.py | 2 Here redirect with explicit descriptor [osh_.py stdout] Expected 'one\n', got '(cmd_value.Argv argv:[cat] arg_spids:[0])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[0])stderr: Unhandled SimpleCommand |
osh_.cc | 2 Here redirect with explicit descriptor [osh_.cc stdout] Expected 'one\n', got '(cmd_value.Argv argv:[cat] arg_spids:[0])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[0])stderr: Unhandled SimpleCommand |
osh_.py | 3 Here doc from another input file descriptor [osh_.py stdout] Expected '8: here doc on descriptor\n', got '(cmd_value.Argv argv:[read_from_fd.py 8] arg_spids:[0 2])\n' stdout: (cmd_value.Argv argv:[read_from_fd.py 8] arg_spids:[0 2])stderr: Unhandled SimpleCommand |
osh_.cc | 3 Here doc from another input file descriptor [osh_.cc stdout] Expected '8: here doc on descriptor\n', got '(cmd_value.Argv argv:[read_from_fd.py 8] arg_spids:[0 2])\n' stdout: (cmd_value.Argv argv:[read_from_fd.py 8] arg_spids:[0 2])stderr: Unhandled SimpleCommand |
osh_.py | 4 Multiple here docs with different descriptors [osh_.py stdout] Expected '0: fd0\n3: fd3\n', got '(cmd_value.Argv argv:[read_from_fd.py 0 3] arg_spids:[0 2 4])\n' stdout: (cmd_value.Argv argv:[read_from_fd.py 0 3] arg_spids:[0 2 4])stderr: Unhandled SimpleCommand |
osh_.cc | 4 Multiple here docs with different descriptors [osh_.cc stdout] Expected '0: fd0\n3: fd3\n', got '(cmd_value.Argv argv:[read_from_fd.py 0 3] arg_spids:[0 2 4])\n' stdout: (cmd_value.Argv argv:[read_from_fd.py 0 3] arg_spids:[0 2 4])stderr: Unhandled SimpleCommand |
osh | 5 Here doc with bad var delimiter stdout: stderr: cat <<${a} ^~ [ stdin ]:1: Invalid here doc delimiter |
osh_.py | 5 Here doc with bad var delimiter stdout: stderr: cat <<${a} ^~ [ stdin ]:1: Invalid here doc delimiter |
osh_.cc | 5 Here doc with bad var delimiter stdout: stderr: cat <<${a} ^~ [ stdin ]:1: Invalid here doc delimiter |
osh_.py | 7 Here doc and < redirect -- last one wins [osh_.py stdout] Expected 'hello\n', got 'hello\n(cmd_value.Argv argv:[cat] arg_spids:[11])\n' stdout: hello (cmd_value.Argv argv:[cat] arg_spids:[11])stderr: Unhandled SimpleCommand |
osh_.cc | 7 Here doc and < redirect -- last one wins [osh_.cc stdout] Expected 'hello\n', got 'hello\n(cmd_value.Argv argv:[cat] arg_spids:[11])\n' stdout: hello (cmd_value.Argv argv:[cat] arg_spids:[11])stderr: Unhandled SimpleCommand |
osh_.py | 8 < redirect and here doc -- last one wins [osh_.py stdout] Expected 'here\n', got '(cmd_value.Argv argv:[cat] arg_spids:[0])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[0])stderr: Unhandled SimpleCommand |
osh_.cc | 8 < redirect and here doc -- last one wins [osh_.cc stdout] Expected 'here\n', got '(cmd_value.Argv argv:[cat] arg_spids:[0])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[0])stderr: Unhandled SimpleCommand |
osh_.py | 9 Here doc with var sub, command sub, arith sub [osh_.py stdout] Expected 'var: v\ncommand: hi\narith: 3\n', got '(cmd_value.Argv argv:[cat] arg_spids:[3])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[3])stderr: Unhandled SimpleCommand |
osh_.cc | 9 Here doc with var sub, command sub, arith sub [osh_.cc stdout] Expected 'var: v\ncommand: hi\narith: 3\n', got '(cmd_value.Argv argv:[cat] arg_spids:[3])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[3])stderr: Unhandled SimpleCommand |
osh_.py | 10 Here doc in middle. And redirects in the middle. [osh_.py stderr] Expected 'foo\nhere\nbar\n', got 'Unhandled SimpleCommand\n' stdout: foo bar (cmd_value.Argv argv:[cat '_tmp/foo.txt' - '_tmp/bar.txt'] arg_spids:[16 24 26 28])stderr: Unhandled SimpleCommand |
osh_.cc | 10 Here doc in middle. And redirects in the middle. [osh_.cc stderr] Expected 'foo\nhere\nbar\n', got 'Unhandled SimpleCommand\n' stdout: foo bar (cmd_value.Argv argv:[cat '_tmp/foo.txt' - '_tmp/bar.txt'] arg_spids:[16 24 26 28])stderr: Unhandled SimpleCommand |
osh_.py | 11 Here doc line continuation [osh_.py stdout] Expected 'one\ntwo\n', got '(cmd_value.Argv argv:[cat] arg_spids:[0])\ntwo\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[0]) twostderr: Unhandled SimpleCommand |
osh_.cc | 11 Here doc line continuation [osh_.cc stdout] Expected 'one\ntwo\n', got '(cmd_value.Argv argv:[cat] arg_spids:[0])\ntwo\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[0]) twostderr: Unhandled SimpleCommand |
osh_.py | 12 Here doc with quote expansion in terminator [osh_.py stdout] Expected u'one\ntwo\n', got '(cmd_value.Argv argv:[cat] arg_spids:[0])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[0])stderr: Unhandled SimpleCommand |
osh_.cc | 12 Here doc with quote expansion in terminator [osh_.cc stdout] Expected u'one\ntwo\n', got '(cmd_value.Argv argv:[cat] arg_spids:[0])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[0])stderr: Unhandled SimpleCommand |
osh_.py | 13 Here doc with multiline double quoted string [osh_.py stdout] Expected 'one\ntwo\nthree\n', got '(cmd_value.Argv argv:[cat] arg_spids:[0])\ntwo\nthree\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[0]) two threestderr: Unhandled SimpleCommand |
osh_.cc | 13 Here doc with multiline double quoted string [osh_.cc stdout] Expected 'one\ntwo\nthree\n', got '(cmd_value.Argv argv:[cat] arg_spids:[0])\ntwo\nthree\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[0]) two threestderr: Unhandled SimpleCommand |
osh_.py | 14 Two here docs -- first is ignored; second ones wins! [osh_.py stdout] Expected 'there\n', got '(cmd_value.Argv argv:[cat] arg_spids:[3])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[3])stderr: Unhandled SimpleCommand |
osh_.cc | 14 Two here docs -- first is ignored; second ones wins! [osh_.cc stdout] Expected 'there\n', got '(cmd_value.Argv argv:[cat] arg_spids:[3])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[3])stderr: Unhandled SimpleCommand |
osh_.py | 16 Here doc with pipe on first line [osh_.py stdout] Expected '3\n2\n1\n', got '' stdout: stderr: |
osh_.cc | 16 Here doc with pipe on first line [osh_.cc stdout] Expected '3\n2\n1\n', got '' stdout: stderr: |
osh_.py | 17 Here doc with pipe continued on last line [osh_.py stdout] Expected '3\n2\n1\n', got '' stdout: stderr: |
osh_.cc | 17 Here doc with pipe continued on last line [osh_.cc stdout] Expected '3\n2\n1\n', got '' stdout: stderr: |
osh_.py | 18 Here doc with builtin 'read' [osh_.py stdout] Expected '=val1= =val2=\n', got '== ==\n' stdout: == ==stderr: |
osh_.cc | 18 Here doc with builtin 'read' [osh_.cc stdout] Expected '=val1= =val2=\n', got '== ==\n' stdout: == ==stderr: |
osh_.py | 19 Compound command here doc [osh_.py stdout] Expected 'X 1\nX 2\nX 3\n', got '' stdout: stderr: |
osh_.cc | 19 Compound command here doc [osh_.cc stdout] Expected 'X 1\nX 2\nX 3\n', got '' stdout: stderr: |
osh_.py | 20 Here doc in while condition and here doc in body [osh_.py stdout] Expected '1\n2\n3\n', got '(cmd_value.Argv argv:[cat] arg_spids:[2])\n(cmd_value.Argv argv:[cat] arg_spids:[9])\n(cmd_value.Argv argv:[cat] arg_spids:[17])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[2]) (cmd_value.Argv argv:[cat] arg_spids:[9]) (cmd_value.Argv argv:[cat] arg_spids:[17])stderr: Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.cc | 20 Here doc in while condition and here doc in body [osh_.cc stdout] Expected '1\n2\n3\n', got '(cmd_value.Argv argv:[cat] arg_spids:[2])\n(cmd_value.Argv argv:[cat] arg_spids:[9])\n(cmd_value.Argv argv:[cat] arg_spids:[17])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[2]) (cmd_value.Argv argv:[cat] arg_spids:[9]) (cmd_value.Argv argv:[cat] arg_spids:[17])stderr: Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.py | 21 Here doc in while condition and here doc in body on multiple lines [osh_.py stdout] Expected '1\n2\n3\n', got '(cmd_value.Argv argv:[cat] arg_spids:[2])\n(cmd_value.Argv argv:[cat] arg_spids:[9])\n(cmd_value.Argv argv:[cat] arg_spids:[23])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[2]) (cmd_value.Argv argv:[cat] arg_spids:[9]) (cmd_value.Argv argv:[cat] arg_spids:[23])stderr: Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.cc | 21 Here doc in while condition and here doc in body on multiple lines [osh_.cc stdout] Expected '1\n2\n3\n', got '(cmd_value.Argv argv:[cat] arg_spids:[2])\n(cmd_value.Argv argv:[cat] arg_spids:[9])\n(cmd_value.Argv argv:[cat] arg_spids:[23])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[2]) (cmd_value.Argv argv:[cat] arg_spids:[9]) (cmd_value.Argv argv:[cat] arg_spids:[23])stderr: Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.py | 22 Here doc in while loop split up more [osh_.py stdout] Expected '1\n2\n3\n', got '(cmd_value.Argv argv:[cat] arg_spids:[2])\n(cmd_value.Argv argv:[cat] arg_spids:[10])\n(cmd_value.Argv argv:[cat] arg_spids:[21])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[2]) (cmd_value.Argv argv:[cat] arg_spids:[10]) (cmd_value.Argv argv:[cat] arg_spids:[21])stderr: Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.cc | 22 Here doc in while loop split up more [osh_.cc stdout] Expected '1\n2\n3\n', got '(cmd_value.Argv argv:[cat] arg_spids:[2])\n(cmd_value.Argv argv:[cat] arg_spids:[10])\n(cmd_value.Argv argv:[cat] arg_spids:[21])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[2]) (cmd_value.Argv argv:[cat] arg_spids:[10]) (cmd_value.Argv argv:[cat] arg_spids:[21])stderr: Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.py | 23 Mixing << and <<- [osh_.py stdout] Expected u'one\n--\ntwo\n', got '(cmd_value.Argv argv:[cat] arg_spids:[0])\n--\n(cmd_value.Argv argv:[cat] arg_spids:[11])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[0]) -- (cmd_value.Argv argv:[cat] arg_spids:[11])stderr: Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.cc | 23 Mixing << and <<- [osh_.cc stdout] Expected u'one\n--\ntwo\n', got '(cmd_value.Argv argv:[cat] arg_spids:[0])\n--\n(cmd_value.Argv argv:[cat] arg_spids:[11])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[0]) -- (cmd_value.Argv argv:[cat] arg_spids:[11])stderr: Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.py | 24 Two compound commands with two here docs [osh_.py stdout] Expected u'X 1\nX 2\n==\nY 3\nY 4\n', got '==\n' stdout: ==stderr: |
osh_.cc | 24 Two compound commands with two here docs [osh_.cc stdout] Expected u'X 1\nX 2\n==\nY 3\nY 4\n', got '==\n' stdout: ==stderr: |
osh_.py | 25 Function def and execution with here doc [osh_.py stdout] Expected u'before\n1\n2\nafter\n', got 'before\n(cmd_value.Argv argv:[cat] arg_spids:[6])\nafter\n' stdout: before (cmd_value.Argv argv:[cat] arg_spids:[6]) afterstderr: Unhandled SimpleCommand |
osh_.cc | 25 Function def and execution with here doc [osh_.cc stdout] Expected u'before\n1\n2\nafter\n', got 'before\n(cmd_value.Argv argv:[cat] arg_spids:[6])\nafter\n' stdout: before (cmd_value.Argv argv:[cat] arg_spids:[6]) afterstderr: Unhandled SimpleCommand |
osh_.py | 26 Here doc as command prefix [osh_.py stdout] Expected u'3\n2\n1\n', got '(cmd_value.Argv argv:[tac] arg_spids:[3])\n' stdout: (cmd_value.Argv argv:[tac] arg_spids:[3])stderr: Unhandled SimpleCommand |
osh_.cc | 26 Here doc as command prefix [osh_.cc stdout] Expected u'3\n2\n1\n', got '(cmd_value.Argv argv:[tac] arg_spids:[3])\n' stdout: (cmd_value.Argv argv:[tac] arg_spids:[3])stderr: Unhandled SimpleCommand |
osh_.py | 27 Redirect after here doc [osh_.py stderr] Expected 'out\n', got 'Unhandled SimpleCommand\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[0])stderr: Unhandled SimpleCommand |
osh_.cc | 27 Redirect after here doc [osh_.cc stderr] Expected 'out\n', got 'Unhandled SimpleCommand\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[0])stderr: Unhandled SimpleCommand |
osh_.py | 28 here doc stripping tabs [osh_.py stdout] Expected '1\n2\n3 # 2 tabs are both stripped\n 4 # spaces are preserved\n', got '(cmd_value.Argv argv:[cat] arg_spids:[0])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[0])stderr: Unhandled SimpleCommand |
osh_.cc | 28 here doc stripping tabs [osh_.cc stdout] Expected '1\n2\n3 # 2 tabs are both stripped\n 4 # spaces are preserved\n', got '(cmd_value.Argv argv:[cat] arg_spids:[0])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[0])stderr: Unhandled SimpleCommand |
osh_.py | 29 Here doc within subshell with boolean [osh_.py stdout] Expected '0\n', got '1\n' stdout: 1stderr: |
osh_.cc | 29 Here doc within subshell with boolean [osh_.cc stdout] Expected '0\n', got '1\n' stdout: 1stderr: |
osh_.py | 30 Here Doc in if condition [osh_.py stdout] Expected 'here doc in IF CONDITION\nTHEN executed\n', got '(cmd_value.Argv argv:[cat] arg_spids:[2])\nTHEN executed\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[2]) THEN executedstderr: Unhandled SimpleCommand |
osh_.cc | 30 Here Doc in if condition [osh_.cc stdout] Expected 'here doc in IF CONDITION\nTHEN executed\n', got '(cmd_value.Argv argv:[cat] arg_spids:[2])\nTHEN executed\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[2]) THEN executedstderr: Unhandled SimpleCommand |
osh_.py | 31 Nested here docs which are indented [osh_.py stdout] Expected 'outside\ninside\n', got '(cmd_value.Argv argv:[cat] arg_spids:[0])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[0])stderr: Unhandled SimpleCommand |
osh_.cc | 31 Nested here docs which are indented [osh_.cc stdout] Expected 'outside\ninside\n', got '(cmd_value.Argv argv:[cat] arg_spids:[0])\n' stdout: (cmd_value.Argv argv:[cat] arg_spids:[0])stderr: Unhandled SimpleCommand |
osh | 32 Multiple here docs in pipeline [osh stdout] Expected '0: 3: fd3\n5: fd5\n', got '0: 3: fd3\n' [osh status] Expected 0, got 1 stdout: 0: 3: fd3stderr: FATAL: Error reading from fd 5: [Errno 9] Bad file descriptor |
osh_.py | 32 Multiple here docs in pipeline [osh_.py stdout] Expected '0: 3: fd3\n5: fd5\n', got '' stdout: stderr: |
osh_.cc | 32 Multiple here docs in pipeline [osh_.cc stdout] Expected '0: 3: fd3\n5: fd5\n', got '' stdout: stderr: |
osh | 33 Multiple here docs in pipeline on multiple lines [osh stdout] Expected '0: 3: fd3\n5: fd5\n', got '0: 3: fd3\n' [osh status] Expected 0, got 1 stdout: 0: 3: fd3stderr: FATAL: Error reading from fd 5: [Errno 9] Bad file descriptor |
osh_.py | 33 Multiple here docs in pipeline on multiple lines [osh_.py stdout] Expected '0: 3: fd3\n5: fd5\n', got '' stdout: stderr: |
osh_.cc | 33 Multiple here docs in pipeline on multiple lines [osh_.cc stdout] Expected '0: 3: fd3\n5: fd5\n', got '' stdout: stderr: |