spec test index / oilshell.org
| status | osh | |
| pass | 30 | |
| FAIL | 3 | |
| total | 33 | |
| case | osh | description |
| 0 | pass | append onto a=(1 2) |
| 1 | pass | append onto var a = %(1 2) |
| 2 | pass | append with invalid type |
| 3 | pass | append with invalid var name |
| 4 | pass | write -sep, -end, -n, varying flag syntax |
| 5 | pass | write --qsn |
| 6 | pass | write --qsn --unicode |
| 7 | pass | write -e not supported |
| 8 | pass | write syntax error |
| 9 | pass | write -- |
| 10 | pass | read flag usage |
| 11 | pass | read :x :y is allowed |
| 12 | pass | Idiom for returning 'read' |
| 13 | pass | read --line --with-eol |
| 14 | pass | read --line --qsn |
| 15 | pass | read --line --with-eol --qsn |
| 16 | pass | read --qsn usage |
| 17 | FAIL | read --all-lines |
| details | ||
| 18 | FAIL | read --all-lines --with-eol |
| details | ||
| 19 | FAIL | read --all-lines --qsn --with-eol |
| details | ||
| 20 | pass | read --all |
| 21 | pass | read -0 is like read -r -d '' |
| 22 | pass | shopt supports long flags |
| 23 | pass | shopt supports 'set' options |
| 24 | pass | shopt and block |
| 25 | pass | shopt and block status |
| 26 | pass | shopt usage error |
| 27 | pass | shopt --print |
| 28 | pass | simple_test_builtin |
| 29 | pass | long flags to test |
| 30 | pass | push-registers |
| 31 | pass | module |
| 32 | pass | runproc |
30 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped 3 failed under osh
| osh | 17 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 | 18 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 | 19 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'
|