Results for whitespace.test.sh

statusoshosh-cpp
pass 33
ok 11
FAIL 11
total55
caseoshosh-cppdescription
0pass pass Parsing shell words \r \v
1ok ok \r in arith expression is allowed by some shells, but not most!
detailsdetails
2FAIL FAIL whitespace in string to integer conversion
detailsdetails
3pass pass \r at end of line is not special
4pass 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

Details on runs that didn't PASS

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

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

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

[osh stdout] Expected '43\n43\n', got 'failed\nfailed\n'

stdout:
failed
failed
stderr:
  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-cpp2 whitespace in string to integer conversion

[osh-cpp stdout] Expected '43\n43\n', got 'failed\nfailed\n'

stdout:
failed
failed
stderr:
  echo $(( $1 + 1 ))
           ^~
[ -c flag ]:1: fatal: Invalid integer constant '\t42\t'
  echo $(( $1 + 1 ))
           ^~
[ -c flag ]:1: fatal: Invalid integer constant '\r42\r'