204 passed, 3 OK, 0 not implemented, 1 BUG, 30 failed, 0 timeouts, 0 cases skipped 2 failed under osh
sush | 3 Here doc from another input file descriptor [sush stdout] Expected '8: here doc on descriptor\n', got '' [sush status] Expected 0, got 1 stdout: stderr: FATAL: Error reading from fd 8: [Errno 9] Bad file descriptor |
sush | 4 Multiple here docs with different descriptors [sush stdout] Expected '0: fd0\n3: fd3\n', got '0: fd3\n' [sush status] Expected 0, got 1 stdout: 0: fd3stderr: FATAL: Error reading from fd 3: [Errno 9] Bad file descriptor |
sush | 5 Here doc with bad var delimiter [sush stdout] Expected 'here\n', got '' [sush status] Expected 0, got 2 stdout: stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line : syntax error: unexpected end of file |
brush | 5 Here doc with bad var delimiter [brush stdout] Expected 'here\n', got '' [brush status] Expected 0, got 2 stdout: stderr: [31mERROR[0m main: unterminated here document sequence; tag(s) [a] found at: [line 1 col 10] (detected near line 4 column 1) |
osh | 5 Here doc with bad var delimiter stdout: stderr: cat <<${a} ^~ [ stdin ]:1: Invalid here doc delimiter |
bash | 6 Here doc with bad comsub delimiter stdout: herestderr: |
mksh | 6 Here doc with bad comsub delimiter stdout: stderr: mksh: <stdin>[1]: syntax error: '(' unexpected |
ksh | 6 Here doc with bad comsub delimiter [ksh status] Expected 2, got 1 stdout: stderr: E: ksh: <stdin>[1]: syntax error: unexpected '(' |
toysh | 6 Here doc with bad comsub delimiter [toysh stdout] Expected u'', got 'here\n' [toysh status] Expected 2, got 0 stdout: herestderr: |
toysh | 7 Here doc and < redirect -- last one wins [toysh status] Expected 0, got 127 stdout: hellostderr: sh: here: No such file or directory |
toysh | 8 < redirect and here doc -- last one wins [toysh status] Expected 0, got 127 stdout: herestderr: sh: hello: No such file or directory |
brush | 10 Here doc in middle. And redirects in the middle. [brush stderr] Expected 'foo\nhere\nbar\n', got '' stdout: foo here barstderr: |
toysh | 14 Two here docs -- first is ignored; second ones wins! [toysh status] Expected 0, got 127 stdout: therestderr: sh: hello: No such file or directory |
mksh | 15 Here doc with line continuation, then pipe. Syntax error. stdout: stderr: mksh: <stdin>[5]: cat: 1: No such file or directory mksh: <stdin>[6]: syntax error: '|' unexpected |
ksh | 15 Here doc with line continuation, then pipe. Syntax error. [ksh status] Expected 2, got 1 stdout: stderr: cat: 1: No such file or directory E: ksh: <stdin>[6]: syntax error: unexpected '|' |
sush | 17 Here doc with pipe continued on last line [sush stdout] Expected '3\n2\n1\n', got '' stdout: stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: 1: command not found |
toysh | 18 Here doc with builtin 'read' [toysh stdout] Expected '=val1= =val2=\n', got '== ==\n' stdout: == ==stderr: sh: read: No such file or directory |
toysh | 19 Compound command here doc [toysh stdout] Expected 'X 1\nX 2\nX 3\n', got '' [toysh status] Expected 0, got 127 stdout: stderr: sh: read: No such file or directory sh: 1: No such file or directory sh: 2: No such file or directory sh: 3: No such file or directory |
sush | 20 Here doc in while condition and here doc in body [sush stdout] Expected '1\n2\n3\n', got '' [sush status] Expected 0, got 127 stdout: stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 6: Unexpected token: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 6: 3: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 7: E3: command not found |
toysh | 23 Mixing << and <<- [toysh stdout] Expected 'one\n--\ntwo\n', got 'one\n\ntwo\n' stdout: one twostderr: |
toysh | 24 Two compound commands with two here docs [toysh stdout] Expected 'X 1\nX 2\n==\nY 3\nY 4\n', got '==\n' [toysh status] Expected 0, got 127 stdout: ==stderr: sh: read: No such file or directory sh: read: No such file or directory sh: 3: No such file or directory sh: 4: No such file or directory |
sush | 25 Function def and execution with here doc [sush stdout] Expected 'before\n1\n2\nafter\n', got 'before\nafter\n' [sush status] Expected 0, got 127 stdout: before afterstderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: 1: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: 2: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: EOF: command not found |
brush | 27 Redirect after here doc [brush stderr] Expected 'out\n', got '' stdout: outstderr: |
toysh | 28 here doc stripping tabs [toysh stdout] Expected '1\n2\n3 # 2 tabs are both stripped\n 4 # spaces are preserved\n' Got '' [toysh status] Expected 0, got 1 stdout: stderr: main: line 1: sh: <<EOF EOF cat: -: Bad file descriptor cat: closing standard input: Bad file descriptor |
sush | 28 here doc stripping tabs [sush stdout] Expected '1\n2\n3 # 2 tabs are both stripped\n 4 # spaces are preserved\n' Got '1\n2\n\t3 # 2 tabs are both stripped\n 4 # spaces are preserved\n' stdout: 1 2 3 # 2 tabs are both stripped 4 # spaces are preservedstderr: |
sush | 30 Here Doc in if condition [sush stdout] Expected 'here doc in IF CONDITION\nTHEN executed\n', got 'THEN executed\n' [sush status] Expected 0, got 2 stdout: THEN executedstderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: Unexpected token: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 6: Unexpected token: fi |
toysh | 31 Nested here docs which are indented [toysh stdout] Expected 'outside\ninside\n', got 'outside\ninside\nINSIDE\n)\n' stdout: outside inside INSIDE )stderr: main: line 1: sh: <<INSIDE EOF |
sush | 31 Nested here docs which are indented [sush stdout] Expected 'outside\ninside\n', got 'outside\n\tinside\n' stdout: outside insidestderr: |
toysh | 32 Multiple here docs in pipeline [toysh stdout] Expected '0: 3: fd3\n5: fd5\nok\n', got '' [toysh status] Expected 0, got -6 stdout: stderr: munmap_chunk(): invalid pointer |
sush | 32 Multiple here docs in pipeline [sush stdout] Expected '0: 3: fd3\n5: fd5\nok\n', got '0: fd5\nok\n' stdout: 0: fd5 okstderr: FATAL: Error reading from fd 3: [Errno 9] Bad file descriptor FATAL: Error reading from fd 5: [Errno 9] Bad file descriptor |
osh | 32 Multiple here docs in pipeline [osh stdout] Expected '0: 3: fd3\n5: fd5\nok\n', got '' stdout: stderr: |
toysh | 33 Multiple here docs in pipeline on multiple lines [toysh stdout] Expected '0: 3: fd3\n5: fd5\nok\n', got '' [toysh status] Expected 0, got -6 stdout: stderr: munmap_chunk(): invalid pointer |
sush | 33 Multiple here docs in pipeline on multiple lines [sush stdout] Expected '0: 3: fd3\n5: fd5\nok\n', got '0: fd5\nok\n' stdout: 0: fd5 okstderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: fd3: command not found FATAL: Error reading from fd 3: [Errno 9] Bad file descriptor FATAL: Error reading from fd 5: [Errno 9] Bad file descriptor |
osh | 33 Multiple here docs in pipeline on multiple lines [osh stdout] Expected '0: 3: fd3\n5: fd5\nok\n', got '' stdout: stderr: |