Results for dparen.test.sh

statusoshosh-cpp
pass 1414
ok 11
total1515
caseoshosh-cppdescription
0pass pass (( )) result
1pass pass negative number is true
2pass pass (( )) in if statement
3pass pass (( ))
4pass pass (( )) with arrays
5pass pass (( )) with error
6pass pass bash and mksh: V in (( a[K] = V )) gets coerced to integer
7ok ok bash: K in (( A[K] = V )) is a constant string
detailsdetails
8pass pass BUG: (( V = A[K] )) doesn't retrieve the right value
9pass pass bash: V in (( A["K"] = V )) gets coerced to integer
10pass pass literal strings inside (( ))
11pass pass (( )) with redirect
12pass pass Assigning whole raray (( b = a ))
13pass pass set associative array
14pass pass Example of incrementing associative array entry with var key (ble.sh)
28 passed, 2 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh7 bash: K in (( A[K] = V )) is a constant string

stdout:
stderr: 
  (( A[K] = V ))
      ^
[ stdin ]:4: fatal: Assoc array keys must be strings: $x 'x' "$x" etc. (OILS-ERR-101)
osh-cpp7 bash: K in (( A[K] = V )) is a constant string

stdout:
stderr: 
  (( A[K] = V ))
      ^
[ stdin ]:4: fatal: Assoc array keys must be strings: $x 'x' "$x" etc. (OILS-ERR-101)