Results for dparen.test.sh

statusoshosh_.pyosh_.cc
pass 141313
ok 111
FAIL 011
total151515
caseoshosh_.pyosh_.ccdescription
0pass pass pass (( )) result
1pass pass pass negative number is true
2pass pass pass (( )) in if statement
3pass pass pass (( ))
4pass pass pass (( )) with arrays
5pass pass pass (( )) with error
6pass pass pass bash and mksh: V in (( a[K] = V )) gets coerced to integer
7ok ok ok bash: K in (( A[K] = V )) is a constant string
detailsdetailsdetails
8pass pass pass BUG: (( V = A[K] )) doesn't retrieve the right value
9pass pass pass bash: V in (( A["K"] = V )) gets coerced to integer
10pass pass pass literal strings inside (( ))
11pass FAIL FAIL (( )) with redirect
detailsdetails
12pass pass pass Can't make assign whole array to var (( b = a ))
13pass pass pass set associative array
14pass pass pass Example of incrementing associative array entry with var key (ble.sh)
40 passed, 3 OK, 0 not implemented, 0 BUG, 2 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: Associative array keys must be strings: $x 'x' "$x" etc.
osh_.py7 bash: K in (( A[K] = V )) is a constant string

stdout:
stderr: 
  (( A[K] = V ))
  ^~
[ stdin ]:4: fatal: Associative array keys must be strings: $x 'x' "$x" etc.
osh_.cc7 bash: K in (( A[K] = V )) is a constant string

stdout:
stderr: 
  (( A[K] = V ))
  ^~
[ stdin ]:4: fatal: Associative array keys must be strings: $x 'x' "$x" etc.
osh_.py11 (( )) with redirect

[osh_.py stdout] Expected '52\n--\nSTDERR\n', got '\n--\n'
[osh_.py status] Expected 0, got 1

stdout:
--
stderr:
  (( a = $(stdout_stderr.py 42) + 10 )) 2>$TMP/x.txt
                                        ^~
[ stdin ]:1: Can't open '/x.txt': Permission denied
cat: /x.txt: No such file or directory
osh_.cc11 (( )) with redirect

[osh_.cc stdout] Expected '52\n--\nSTDERR\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.