Results for ble-idioms.test.sh

statusoshosh-cpp
pass 2424
FAIL 22
total2626
caseoshosh-cppdescription
0pass pass recursive arith: one level
1pass pass recursive arith: two levels
2pass pass recursive arith: short circuit &&, ||
3pass pass recursive arith: short circuit ?:
4pass pass recursive arith: side effects
5pass pass recursive arith: recursion
6pass pass recursive arith: array elements
7pass pass dynamic arith varname: assign
8pass pass dynamic arith varname: read
9pass pass dynamic arith varname: copy/add
10pass pass is-array with ${var@a}
11pass pass Sparse array with big index
12pass pass shift unshift reverse
13pass pass shopt -u expand_aliases and eval
14pass pass Tilde expansions in RHS of designated array initialization
15pass pass InitializerList (BashArray): index increments with
16pass pass InitializerList (BashArray): [k]=$v and [k]="$@"
17pass pass InitializerList (BashAssoc): [k]=$v and [k]="$@"
18pass pass InitializerList (BashArray): append to element
19pass pass InitializerList (BashAssoc): append to element
20pass pass InitializerList (BashAssoc): non-index forms of element
21pass pass InitializerList (BashArray): evaluation order (1)
22pass pass InitializerList (BashArray): evaluation order (2)
23pass pass InitializerList (BashArray): evaluation order (3)
24FAIL FAIL Issue #1069 [57] - Variable v is invisible after IFS= eval 'local v=...'
detailsdetails
25FAIL FAIL Issue #1069 [57] - Assigning Str to BashArray/BashAssoc should not remove BashArray/BashAssoc
detailsdetails
48 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

osh24 Issue #1069 [57] - Variable v is invisible after IFS= eval 'local v=...'

[osh stdout] Expected 'v=hello\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
    echo v=$v
           ^~
[ stdin ]:7: fatal: Undefined variable 'v'
osh-cpp24 Issue #1069 [57] - Variable v is invisible after IFS= eval 'local v=...'

[osh-cpp stdout] Expected 'v=hello\n', got ''
[osh-cpp status] Expected 0, got 1

stdout:
stderr: 
    echo v=$v
           ^~
[ stdin ]:7: fatal: Undefined variable 'v'
osh25 Issue #1069 [57] - Assigning Str to BashArray/BashAssoc should not remove BashArray/BashAssoc

[osh stdout] Expected 'declare -a a=([0]="99" [1]="2" [2]="3")\ndeclare -A A=([0]="99" [k]="v" )\n' Got 'declare -- a=99\ndeclare -- A=99\n'

stdout:
declare -- a=99
declare -- A=99
stderr:
osh-cpp25 Issue #1069 [57] - Assigning Str to BashArray/BashAssoc should not remove BashArray/BashAssoc

[osh-cpp stdout] Expected 'declare -a a=([0]="99" [1]="2" [2]="3")\ndeclare -A A=([0]="99" [k]="v" )\n' Got 'declare -- a=99\ndeclare -- A=99\n'

stdout:
declare -- a=99
declare -- A=99
stderr: