spec test index / oilshell.org
52 passed, 0 OK, 0 not implemented, 0 BUG, 16 failed, 0 timeouts, 0 cases skipped 4 failed under osh
osh-cpp | 1 append onto var a = %(1 2) [osh-cpp stdout] Expected "['1', '2', '3 4', '5']\n", got '' [osh-cpp status] Expected 0, got 1 stdout: stderr: append a '3 4' '5' # : is optional ^ [ stdin ]:3: 'a' isn't an array argv.py @a ^~ [ stdin ]:4: fatal: Can't splice 'a' |
osh-cpp | 2 append onto var a = ['1', '2'] [osh-cpp stdout] Expected "['1', '2', '3 4', '5']\n", got '' [osh-cpp status] Expected 0, got 1 stdout: stderr: append a '3 4' '5' # : is optional ^ [ stdin ]:3: 'a' isn't an array argv.py @a ^~ [ stdin ]:4: fatal: Can't splice 'a' |
osh-cpp | 5 write --sep, --end, -n, varying flag syntax [osh-cpp stdout] Expected 'a b\nc d\n.\na b\nc d\n.\na bc d\n.\na b_c d\na b_c d END\na b_c d END\nxy\n' Got '' [osh-cpp status] Expected 0, got 1 stdout: stderr: write @a ^~ [ stdin ]:3: fatal: Can't splice 'a' |
osh-cpp | 13 Idiom for returning 'read' [osh-cpp stdout] Expected 'z=foo\n', got '' [osh-cpp status] Expected 0, got 2 stdout: stderr: proc p(out Ref) { ^~~ [ stdin ]:3: proc param types should be Ref, Expr, or Block |
osh-cpp | 14 read --line --with-eol [osh-cpp stdout] Expected 'line=1\nline=2\nline=3\nline=a\nline=b\n', got '' [osh-cpp status] Expected 0, got -6 stdout: stderr: osh: cpp/core.cc:77: Str* pyos::ReadLine(): Assertion `0' failed. timeout: the monitored command dumped core |
osh-cpp | 15 read --line --qsn [osh-cpp stdout] Expected "'foo\\n'\n'foo\\tbar hex=\\u{1} mu=\\u{3bc}'\n'$'\n" Got '' [osh-cpp status] Expected 0, got -6 stdout: stderr: osh: cpp/core.cc:77: Str* pyos::ReadLine(): Assertion `0' failed. timeout: the monitored command dumped core |
osh | 16 read --line --qsn accepts optional $'' [osh stdout] Expected 'foo\n', got "$'foo'\n" stdout: $'foo'stderr: |
osh-cpp | 16 read --line --qsn accepts optional $'' [osh-cpp stdout] Expected 'foo\n', got '' [osh-cpp status] Expected 0, got -6 stdout: stderr: osh: cpp/core.cc:77: Str* pyos::ReadLine(): Assertion `0' failed. timeout: the monitored command dumped core |
osh-cpp | 17 read --line --with-eol --qsn [osh-cpp stdout] Expected "'foo\\n'\n", got '' [osh-cpp status] Expected 0, got -6 stdout: stderr: osh: cpp/core.cc:77: Str* pyos::ReadLine(): Assertion `0' failed. timeout: the monitored command dumped core |
osh | 19 read --all-lines [osh stdout] Expected '1 2 3\n', got '@nums\n' stdout: @numsstderr: seq 3 | read --all-lines :nums ^~~~~~~~~~~ [ stdin ]:1: 'read' got invalid flag '--all-lines' |
osh-cpp | 19 read --all-lines [osh-cpp stdout] Expected '1 2 3\n', got '@nums\n' stdout: @numsstderr: seq 3 | read --all-lines :nums ^~~~~~~~~~~ [ stdin ]:1: 'read' got invalid flag '--all-lines' |
osh | 20 read --all-lines --with-eol [osh stdout] Expected '1\n2\n3\n', got '@nums\n' stdout: @numsstderr: seq 3 | read --all-lines --with-eol :nums ^~~~~~~~~~~ [ stdin ]:1: 'read' got invalid flag '--all-lines' |
osh-cpp | 20 read --all-lines --with-eol [osh-cpp stdout] Expected '1\n2\n3\n', got '@nums\n' stdout: @numsstderr: seq 3 | read --all-lines --with-eol :nums ^~~~~~~~~~~ [ stdin ]:1: 'read' got invalid flag '--all-lines' |
osh | 21 read --all-lines --qsn --with-eol [osh stdout] Expected 'foo\nbar\none\ntwo\n', got '@lines\n' stdout: @linesstderr: read --all-lines --qsn --with-eol :lines << EOF ^~~~~~~~~~~ [ stdin ]:1: 'read' got invalid flag '--all-lines' |
osh-cpp | 21 read --all-lines --qsn --with-eol [osh-cpp stdout] Expected 'foo\nbar\none\ntwo\n', got '@lines\n' stdout: @linesstderr: read --all-lines --qsn --with-eol :lines << EOF ^~~~~~~~~~~ [ stdin ]:1: 'read' got invalid flag '--all-lines' |
osh-cpp | 23 read --line from directory is an error (EISDIR) [osh-cpp stdout] Expected 'status=1\n', got '' [osh-cpp status] Expected 0, got -6 stdout: stderr: osh: cpp/core.cc:77: Str* pyos::ReadLine(): Assertion `0' failed. timeout: the monitored command dumped core |