for-expr () { run-file for-expr "$@" } 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 | bash-4 | zsh | osh | |
| pass | 9 | 8 | 9 | |
| ok | 0 | 1 | 0 | |
| total | 9 | 9 | 9 | |
| case | bash-4 | zsh | osh | description | 
| 0 | pass | pass | pass | C-style for loop | 
| 1 | pass | pass | pass | For loop with and without semicolon | 
| 2 | pass | pass | pass | Accepts { } syntax too | 
| 3 | pass | pass | pass | Empty init | 
| 4 | pass | pass | pass | Empty init and cond | 
| 5 | pass | pass | pass | Infinite loop with ((;;)) | 
| 6 | pass | ok | pass | Arith lexer mode | 
| details | ||||
| 7 | pass | pass | pass | Integers near 31, 32, 62 bits | 
| 8 | pass | pass | pass | Condition that's greater than 32 bits | 
26 passed, 1 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
| zsh | 6 Arith lexer mode stdout: stderr: zsh: bad math expression: operand expected at `'3''  |