spec test index / oilshell.org
53 passed, 0 OK, 0 not implemented, 0 BUG, 9 failed, 0 timeouts, 0 cases skipped 3 failed under osh
osh-cpp | 14 read --line --with-eol [osh-cpp stdout] Expected 'reply=1\nreply=2\nreply=3\nmyline=a\nmyline=b\n' Got "reply=write a b | while read --line --with-eol (&myline) {\nreply= write --end '' myline=$myline\nreply=}\nreply=1\nreply=2\nreply=3\n" stdout: reply=write a b | while read --line --with-eol (&myline) { reply= write --end '' myline=$myline reply=} reply=1 reply=2 reply=3stderr: |
osh | 15 read --line --j8 [osh stdout] Expected 'foo\n', got "u'foo'\n" stdout: u'foo'stderr: |
osh-cpp | 15 read --line --j8 [osh-cpp stdout] Expected 'foo\n', got '' stdout: stderr: |
osh | 18 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 | 18 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 | 19 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 | 19 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-cpp | 20 Can simulate read --all-lines with a proc and value.Place [osh-cpp stdout] Expected '[\n "1",\n "2",\n "3"\n]\n', got '' stdout: stderr: |
osh-cpp | 22 read --line from directory is an error (EISDIR) [osh-cpp stdout] Expected 'status=1\n', got '' stdout: stderr: |