spec test index / oilshell.org
47 passed, 2 OK, 0 not implemented, 3 BUG, 32 failed, 0 timeouts, 0 cases skipped
osh_.cc | 1 case in subshell [osh_.cc stdout] Expected 'letter\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 2 Command sub word part [osh_.cc stdout] Expected 'FOObarFOO\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 3 Backtick [osh_.cc stdout] Expected 'FOObarFOO\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 4 Backtick 2 [osh_.cc stdout] Expected 'ls\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 5 Nested backticks [osh_.cc stdout] Expected '000000-first\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:139: void posix::dup2(int, int): Assertion `0' failed. |
osh_.cc | 6 Making command out of command sub should work [osh_.cc stdout] Expected 'split builtin\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.py | 8 Command sub with here doc [osh_.py stdout] Expected 'two one\n', got '\n' stdout: stderr: echo $(<<EOF tac ^~~ [ stdin ]:1: 'tac' not found |
osh_.cc | 8 Command sub with here doc [osh_.cc stdout] Expected 'two one\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.py | 9 Here doc with pipeline [osh_.py stdout] Expected u'twoXoneX', got '' [osh_.py status] Expected 0, got 127 stdout: stderr: <<EOF tac | tr '\n' 'X' ^~ [ stdin ]:1: 'tr' not found <<EOF tac | tr '\n' 'X' ^~~ [ stdin ]:1: 'tac' not found |
osh_.cc | 9 Here doc with pipeline [osh_.cc stdout] Expected u'twoXoneX', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.py | 10 Command Sub word split [osh_.py stdout] Expected "['hi', 'there', 'hi there']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py $(echo 'hi there') "$(echo 'hi there')" ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.cc | 10 Command Sub word split [osh_.cc stdout] Expected "['hi', 'there', 'hi there']\n", got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.py | 11 Command Sub trailing newline removed [osh_.py stdout] Expected "['ab\\ncd']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: s=$(python -c 'print("ab\ncd\n")') ^~~~~~ [ stdin ]:1: 'python' not found argv.py "$s" ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 11 Command Sub trailing newline removed [osh_.cc stdout] Expected "['ab\\ncd']\n", got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.py | 12 Command Sub trailing whitespace not removed [osh_.py stdout] Expected "['ab\\ncd\\n ']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: s=$(python -c 'print("ab\ncd\n ")') ^~~~~~ [ stdin ]:1: 'python' not found argv.py "$s" ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 12 Command Sub trailing whitespace not removed [osh_.cc stdout] Expected "['ab\\ncd\\n ']\n", got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 13 Command Sub and exit code [osh_.cc stdout] Expected 'x\n0\n33\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 14 Command Sub in local sets exit code [osh_.cc stdout] Expected 'x\n0\n0\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 15 Double Quotes in Command Sub in Double Quotes [osh_.cc stdout] Expected 'x hi\nx hi\nx "hi"\nx hi\nx hi\nx hi\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.py | 16 Escaped quote in [[ ]] [osh_.py stdout] Expected '123 456\n"\n', got '123 456\n' [osh_.py status] Expected 0, got 1 stdout: 123 456stderr: [[ $(echo \" > $file) ]] ^ [ backticks at ... ]:1: Can't open '/command-sub-dbracket': Permission denied cat: /command-sub-dbracket: No such file or directory |
osh_.cc | 16 Escaped quote in [[ ]] [osh_.cc stdout] Expected '123 456\n"\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 17 Quoting $ within `` [osh_.cc stdout] Expected '1 $\n2 $\n3 $\n4 $\n5 \\$\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 18 Quoting $ within `` within double quotes [osh_.cc stdout] Expected '1 $\n2 $\n3 $\n4 $\n5 \\$\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 19 Quoting \ within `` [osh_.cc stdout] Expected '[1 ]\n[2 ]\n[3 \\]\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 20 Quoting \ within `` within double quotes [osh_.cc stdout] Expected '[1 ]\n[2 ]\n[3 \\]\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 21 Quoting ( within `` [osh_.cc stdout] Expected '1 (\n2 (\n3 (\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 22 Quoting ( within `` within double quotes [osh_.cc stdout] Expected '1 (\n2 (\n3 (\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 23 Quoting non-special characters within `` [osh_.cc stdout] Expected '[1 z]\n[2 z]\n[3 \\z]\n[4 \\z]\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 24 Quoting non-special characters within `` within double quotes [osh_.cc stdout] Expected '[1 z]\n[2 z]\n[3 \\z]\n[4 \\z]\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh | 25 Quoting double quotes within backticks stdout: "foo" foo "foo"stderr: |
osh_.py | 25 Quoting double quotes within backticks stdout: "foo" foo "foo"stderr: |
osh_.cc | 25 Quoting double quotes within backticks [osh_.cc stdout] Expected '"foo"\nfoo\n"foo"\n', got '"foo"\n' [osh_.cc status] Expected 0, got -6 stdout: "foo"stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh | 26 More levels of double quotes in backticks stdout: BUGstderr: |
osh_.py | 26 More levels of double quotes in backticks stdout: BUGstderr: |
osh_.cc | 26 More levels of double quotes in backticks stdout: BUGstderr: |
osh_.py | 27 Syntax errors with double quotes within backticks [osh_.py stdout] Expected 'status=2\nstatus=2\n', got 'status=127\nstatus=127\n' stdout: status=127 status=127stderr: $SH -c 'echo `echo "`' ^~ [ stdin ]:1: '-c' not found $SH -c 'echo `echo \\\\"`' ^~ [ stdin ]:3: '-c' not found |
osh_.cc | 27 Syntax errors with double quotes within backticks [osh_.cc stdout] Expected 'status=2\nstatus=2\n', got 'status=127\nstatus=127\n' stdout: status=127 status=127stderr: $SH -c 'echo `echo "`' ^~ [ stdin ]:1: '-c' not found $SH -c 'echo `echo \\\\"`' ^~ [ stdin ]:3: '-c' not found |