whitespace () { run-file whitespace "$@" } run-file () { local spec_name=$1; shift; sh-spec spec/$spec_name.test.sh --compare-shells --oils-bin-dir $PWD/bin "$@" }
spec test index / oilshell.org
| status | dash | bash | mksh | zsh | ash | osh | |
| pass | 5 | 5 | 3 | 4 | 3 | 3 | |
| ok | 0 | 0 | 2 | 1 | 2 | 2 | |
| total | 5 | 5 | 5 | 5 | 5 | 5 | |
| case | dash | bash | mksh | zsh | ash | osh | description | 
| 0 | pass | pass | pass | pass | pass | pass | Parsing shell words \r \v | 
| 1 | pass | pass | ok | pass | ok | ok | \r in arith expression is allowed by some shells, but not most! | 
| details | details | details | |||||
| 2 | pass | pass | ok | pass | ok | ok | whitespace in string to integer conversion | 
| details | details | details | |||||
| 3 | pass | pass | pass | pass | pass | pass | \r at end of line is not special | 
| 4 | pass | pass | pass | ok | pass | pass | Default IFS does not include \r \v \f | 
| details | 
23 passed, 7 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
| mksh | 1 \r in arith expression is allowed by some shells, but not most! stdout: ['3'] ['3']stderr:  | 
| ash | 1 \r in arith expression is allowed by some shells, but not most! stdout: ['3'] ['3']stderr:  | 
| osh | 1 \r in arith expression is allowed by some shells, but not most! stdout: ['3'] ['3']stderr:  | 
| mksh | 2 whitespace in string to integer conversion stdout: 43 43stderr:  | 
| ash | 2 whitespace in string to integer conversion stdout: 43 43stderr:  | 
| osh | 2 whitespace in string to integer conversion stdout: 43 43stderr:  | 
| zsh | 4 Default IFS does not include \r \v \f stdout: ['-\t-'] ['-\r-'] ['-\x0b-'] ['-\x0c-']stderr:  |