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 "$@" } whitespace: spec test case results

Results for whitespace.test.sh

statusdashbashmkshzshashosh
pass 553433
ok 002122
total555555
casedashbashmkshzshashoshdescription
0pass pass pass pass pass pass Parsing shell words \r \v
1pass pass ok pass ok ok \r in arith expression is allowed by some shells, but not most!
detailsdetailsdetails
2pass pass ok pass ok ok whitespace in string to integer conversion
detailsdetailsdetails
3pass pass pass pass pass pass \r at end of line is not special
4pass 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

Details on runs that didn't PASS

mksh1 \r in arith expression is allowed by some shells, but not most!

stdout:
['3']
['3']
stderr:
ash1 \r in arith expression is allowed by some shells, but not most!

stdout:
['3']
['3']
stderr:
osh1 \r in arith expression is allowed by some shells, but not most!

stdout:
['3']
['3']
stderr:
mksh2 whitespace in string to integer conversion

stdout:
43
43
stderr:
ash2 whitespace in string to integer conversion

stdout:
43
43
stderr:
osh2 whitespace in string to integer conversion

stdout:
43
43
stderr:
zsh4 Default IFS does not include \r \v \f

stdout:
['-\t-']
['-\r-']
['-\x0b-']
['-\x0c-']
stderr: