spec test index / oilshell.org
| status | osh | osh-cpp | |
| pass | 3 | 3 | |
| ok | 1 | 1 | |
| FAIL | 1 | 1 | |
| total | 5 | 5 | |
| case | osh | osh-cpp | description |
| 0 | pass | pass | Parsing shell words \r \v |
| 1 | ok | ok | \r in arith expression is allowed by some shells, but not most! |
| details | details | ||
| 2 | FAIL | FAIL | whitespace in string to integer conversion |
| details | details | ||
| 3 | pass | pass | \r at end of line is not special |
| 4 | pass | pass | Default IFS does not include \r \v \f |
6 passed, 2 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
| osh | 1 \r in arith expression is allowed by some shells, but not most! stdout: ['3'] ['3']stderr: |
| osh-cpp | 1 \r in arith expression is allowed by some shells, but not most! stdout: ['3'] ['3']stderr: |
| osh | 2 whitespace in string to integer conversion [osh stdout] Expected '43\n43\n', got 'failed\nfailed\n' stdout: failed failedstderr: echo $(( $1 + 1 ))
^~
[ -c flag ]:1: fatal: Invalid integer constant '\t42\t'
echo $(( $1 + 1 ))
^~
[ -c flag ]:1: fatal: Invalid integer constant '\r42\r'
|
| osh-cpp | 2 whitespace in string to integer conversion [osh-cpp stdout] Expected '43\n43\n', got 'failed\nfailed\n' stdout: failed failedstderr: echo $(( $1 + 1 ))
^~
[ -c flag ]:1: fatal: Invalid integer constant '\t42\t'
echo $(( $1 + 1 ))
^~
[ -c flag ]:1: fatal: Invalid integer constant '\r42\r'
|