Results for ble-idioms.test.sh

statusbashmkshkshtoyshsushbrushosh
pass 2410111151425
ok 0200000
N-I 01400000
BUG 3100000
FAIL 00162612132
total27272727272727
casebashmkshkshtoyshsushbrushoshdescription
0pass pass pass FAIL pass pass pass recursive arith: one level
details
1pass pass pass FAIL pass pass pass recursive arith: two levels
details
2pass BUG pass FAIL pass pass pass recursive arith: short circuit &&, ||
detailsdetails
3pass pass pass FAIL pass pass pass recursive arith: short circuit ?:
details
4pass pass pass FAIL pass pass pass recursive arith: side effects
details
5pass N-I FAIL FAIL pass pass pass recursive arith: recursion
detailsdetailsdetails
6pass pass pass FAIL pass pass pass recursive arith: array elements
details
7pass pass pass FAIL pass pass pass dynamic arith varname: assign
details
8pass pass pass FAIL pass pass pass dynamic arith varname: read
details
9pass pass pass FAIL pass pass pass dynamic arith varname: copy/add
details
10pass N-I FAIL FAIL FAIL FAIL pass is-array with ${var@a}
detailsdetailsdetailsdetailsdetails
11pass pass pass FAIL pass pass pass Sparse array with big index
details
12pass N-I FAIL FAIL FAIL FAIL pass shift unshift reverse
detailsdetailsdetailsdetailsdetails
13pass N-I FAIL FAIL pass FAIL pass shopt -u expand_aliases and eval
detailsdetailsdetailsdetails
14BUG N-I FAIL FAIL FAIL FAIL pass Tilde expansions in RHS of designated array initialization
detailsdetailsdetailsdetailsdetailsdetails
15pass N-I FAIL FAIL pass pass pass InitializerList (BashArray): index increments with
detailsdetailsdetails
16pass N-I FAIL FAIL FAIL FAIL pass InitializerList (BashArray): [k]=$v and [k]="$@"
detailsdetailsdetailsdetailsdetails
17pass N-I FAIL FAIL FAIL pass pass InitializerList (BashAssoc): [k]=$v and [k]="$@"
detailsdetailsdetailsdetails
18pass N-I FAIL FAIL FAIL FAIL pass InitializerList (BashArray): append to element
detailsdetailsdetailsdetailsdetails
19BUG N-I FAIL FAIL FAIL FAIL pass InitializerList (BashAssoc): append to element
detailsdetailsdetailsdetailsdetailsdetails
20BUG N-I FAIL FAIL FAIL FAIL pass InitializerList (BashAssoc): non-index forms of element
detailsdetailsdetailsdetailsdetailsdetails
21pass N-I FAIL FAIL pass FAIL pass InitializerList (BashArray): evaluation order (1)
detailsdetailsdetailsdetails
22pass N-I FAIL FAIL FAIL FAIL pass InitializerList (BashArray): evaluation order (2)
detailsdetailsdetailsdetailsdetails
23pass N-I FAIL FAIL FAIL FAIL pass InitializerList (BashArray): evaluation order (3)
detailsdetailsdetailsdetailsdetails
24pass pass pass pass FAIL FAIL pass Issue #1069 [57] - Variable v should be visible after IFS= eval 'local v=...'
detailsdetails
25pass ok FAIL FAIL FAIL pass FAIL Issue #1069 [59] - Assigning Str to BashArray/BashAssoc should not remove BashArray/BashAssoc
detailsdetailsdetailsdetailsdetails
26pass ok FAIL FAIL pass FAIL FAIL Issue #1069 [53] - LHS array parsing a[1 + 2]=3 (see spec/array-assign for more)
detailsdetailsdetailsdetailsdetails
100 passed, 2 OK, 14 not implemented, 4 BUG, 69 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

toysh0 recursive arith: one level

[toysh stdout] Expected '123\n', got '0\n'

stdout:
0
stderr:
toysh1 recursive arith: two levels

[toysh stdout] Expected '123\n', got ''
[toysh status] Expected 0, got 1

stdout:
stderr: 
main: line 2: sh: =0
main: line 2: sh: bad math: a @ 1
mksh2 recursive arith: short circuit &&, ||

stdout:
1:123
1:123
0:321
1:321
stderr:
toysh2 recursive arith: short circuit &&, ||

[toysh stdout] Expected '1:0\n1:123\n0:0\n1:321\n', got '1:0\n0:0\n0:0\n0:0\n'

stdout:
1:0
0:0
0:0
0:0
stderr:
toysh3 recursive arith: short circuit ?:

[toysh stdout] Expected '123:123\n321:321\n', got '0:0\n0:0\n'

stdout:
0:0
0:0
stderr:
toysh4 recursive arith: side effects

[toysh stdout] Expected '123:123\n', got ''
[toysh status] Expected 0, got 1

stdout:
stderr: 
main: line 2: sh: =0
main: line 2: sh: bad math: a,d @ 1
mksh5 recursive arith: recursion

stdout:
stderr: 
mksh: <stdin>[2]: i<=100&&(s+=i,i++,loop): expression recurses on parameter 'loop'
ksh5 recursive arith: recursion

[ksh stdout] Expected '5050\n', got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
W: ksh: <stdin>[2]: i<=100&&(s+=i,i++,loop): expression recurses on parameter 'loop'
toysh5 recursive arith: recursion

[toysh stdout] Expected '5050\n', got ''
[toysh status] Expected 0, got -11

stdout:
stderr: 
toysh6 recursive arith: array elements

[toysh stdout] Expected '123\n', got ''
[toysh status] Expected 0, got 1

stdout:
stderr: 
sh: text[1]=d=123: No such file or directory
sh: text[2]=text[1]: No such file or directory
sh: text[3]=text[2]: No such file or directory
main: line 4: sh: =0
main: line 4: sh: bad math: a=text[3] @ 7
toysh7 dynamic arith varname: assign

[toysh stdout] Expected 'a_x=3 a_y=4\nb_x=5 b_y=12\n', got 'a_x=0 a_y=0\nb_x=0 b_y=0\n'

stdout:
a_x=0 a_y=0
b_x=0 b_y=0
stderr:
toysh8 dynamic arith varname: read

[toysh stdout] Expected 'x=12 y=34\n', got 'x=12 y=0\n'

stdout:
x=12 y=0
stderr:
toysh9 dynamic arith varname: copy/add

[toysh stdout] Expected 'c_x=3 c_y=4\nc_x=7 c_y=24\n', got 'c_x=0 c_y=0\nc_x=4 c_y=20\n'

stdout:
c_x=0 c_y=0
c_x=4 c_y=20
stderr:
sh: shopt: No such file or directory
mksh10 is-array with ${var@a}

stdout:
stderr: 
ksh10 is-array with ${var@a}

[ksh stdout] Expected 'undef 1\nstring 1\narray 0\n', got 'undef 127\nstring 127\narray 127\n'

stdout:
undef 127
string 127
array 127
stderr:
E: ksh: <stdin>[5]: ble/is-array: inaccessible or not found
E: ksh: <stdin>[9]: ble/is-array: inaccessible or not found
E: ksh: <stdin>[13]: ble/is-array: inaccessible or not found
toysh10 is-array with ${var@a}

[toysh stdout] Expected 'undef 1\nstring 1\narray 0\n', got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: (
sush10 is-array with ${var@a}

[sush stdout] Expected 'undef 1\nstring 1\narray 0\n', got 'undef 127\nstring 127\narray 127\n'

stdout:
undef 127
string 127
array 127
stderr:
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: Unexpected token: }

/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: ble/is-array: command not found
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 9: ble/is-array: command not found
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 13: ble/is-array: command not found
brush10 is-array with ${var@a}

[brush stdout] Expected 'undef 1\nstring 1\narray 0\n', got 'undef 127\nstring 127\narray 127\n'

stdout:
undef 127
string 127
array 127
stderr:
ble/is-array: not found
ble/is-array: not found
ble/is-array: not found
toysh11 Sparse array with big index

[toysh stdout] Expected 'len=1\n', got ''
[toysh status] Expected 0, got 1

stdout:
stderr: 
sh: a[i]=1: No such file or directory
main: line 11: sh: a: [@]}
mksh12 shift unshift reverse

stdout:
stderr: 
ksh12 shift unshift reverse

[ksh stdout] Expected '1 2 3 4 5 6\n2 3 4 5 6\n4 5 6\n---\n99 4 5 6\n---\n6 5 4 99\n' Got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[4]: ble/array#unshift: invalid function name
toysh12 shift unshift reverse

[toysh stdout] Expected '1 2 3 4 5 6\n2 3 4 5 6\n4 5 6\n---\n99 4 5 6\n---\n6 5 4 99\n' Got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
sush12 shift unshift reverse

[sush stdout] Expected '1 2 3 4 5 6\n2 3 4 5 6\n4 5 6\n---\n99 4 5 6\n---\n6 5 4 99\n' Got '1 2 3 4 5 6\n1 2 3 4 5 6\n1 2 3 4 5 6\n---\n1 2 3 4 5 6\n---\n1 2 3 4 5 6\n'

stdout:
1 2 3 4 5 6
1 2 3 4 5 6
1 2 3 4 5 6
---
1 2 3 4 5 6
---
1 2 3 4 5 6
stderr:
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: function: command not found
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: Unexpected token: ("${@:2}"
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 7: Unexpected token: }

/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 7: function: command not found
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: Unexpected token: ("${[@]:1}")
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 10: Unexpected token: }

/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 10: function: command not found
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: Unexpected token: ()

/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 16: Unexpected token: }

/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 20: ble/array#shift: command not found
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 23: ble/array#shift: command not found
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 28: ble/array#unshift: command not found
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 33: ble/array#reverse: command not found
brush12 shift unshift reverse

[brush stdout] Expected '1 2 3 4 5 6\n2 3 4 5 6\n4 5 6\n---\n99 4 5 6\n---\n6 5 4 99\n' Got '1 2 3 4 5 6\n1 2 3 4 5 6\n1 2 3 4 5 6\n---\n1 2 3 4 5 6\n---\n1 2 3 4 5 6\n'

stdout:
1 2 3 4 5 6
1 2 3 4 5 6
1 2 3 4 5 6
---
1 2 3 4 5 6
---
1 2 3 4 5 6
stderr:
ble/array#shift: not found
ble/array#shift: not found
ble/array#unshift: not found
ble/array#reverse: not found
mksh13 shopt -u expand_aliases and eval

stdout:
stderr: 
ksh13 shopt -u expand_aliases and eval

[ksh stdout] Expected 'hello\n', got ''
[ksh status] Expected 0, got 127

stdout:
stderr: 
E: f: <stdin>[11]: shopt: inaccessible or not found
E: f: <stdin>[11]: shopt: inaccessible or not found
toysh13 shopt -u expand_aliases and eval

[toysh stdout] Expected 'hello\n', got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
brush13 shopt -u expand_aliases and eval

[brush stdout] Expected 'hello\n', got ''

stdout:
stderr: 
error: unexpected argument 'hello' found

Usage: false

For more information, try '--help'.

bash14 Tilde expansions in RHS of designated array initialization

stdout:
~
~:~:~
stderr:
mksh14 Tilde expansions in RHS of designated array initialization

stdout:
stderr: 
ksh14 Tilde expansions in RHS of designated array initialization

[ksh stdout] Expected '/home/user\n/home/user:/home/user:/home/user\n' Got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[4]: declare: inaccessible or not found
E: ksh: <stdin>[5]: syntax error: unexpected '('
toysh14 Tilde expansions in RHS of designated array initialization

[toysh stdout] Expected '/home/user\n/home/user:/home/user:/home/user\n' Got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
sush14 Tilde expansions in RHS of designated array initialization

[sush stdout] Expected '/home/user\n/home/user:/home/user:/home/user\n' Got ''
[sush status] Expected 0, got 1

stdout:
stderr: 
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: 'home': syntax error: operand expected (error token is "'home'")
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: 'hello': syntax error: operand expected (error token is "'hello'")
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 6: 'home': syntax error: operand expected (error token is "'home'")
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 7: 'hello': syntax error: operand expected (error token is "'hello'")
brush14 Tilde expansions in RHS of designated array initialization

[brush stdout] Expected '/home/user\n/home/user:/home/user:/home/user\n' Got '/home/user\n/home/user:~:~\n'

stdout:
/home/user
/home/user:~:~
stderr:
mksh15 InitializerList (BashArray): index increments with

stdout:
stderr: 
ksh15 InitializerList (BashArray): index increments with

[ksh stdout] Expected "keys: ['100', '101', '102', '103']\nvals: ['1', '2', '3', '4']\nkeys: ['5', '6', '7', '8', '100', '101', '102', '103']\nvals: ['a', 'b', 'c', 'd', '1', '2', '3', '4']\n" Got "keys: ['0', '1', '2', '3']\nvals: ['[100]=1', '2', '3', '4']\nkeys: ['0', '1', '2', '3', '4', '5', '6', '7']\nvals: ['[100]=1', '2', '3', '4', '[5]=a', 'b', 'c', 'd']\n"

stdout:
keys: ['0', '1', '2', '3']
vals: ['[100]=1', '2', '3', '4']
keys: ['0', '1', '2', '3', '4', '5', '6', '7']
vals: ['[100]=1', '2', '3', '4', '[5]=a', 'b', 'c', 'd']
stderr:
toysh15 InitializerList (BashArray): index increments with

[toysh stdout] Expected "keys: ['100', '101', '102', '103']\nvals: ['1', '2', '3', '4']\nkeys: ['5', '6', '7', '8', '100', '101', '102', '103']\nvals: ['a', 'b', 'c', 'd', '1', '2', '3', '4']\n" Got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
mksh16 InitializerList (BashArray): [k]=$v and [k]="$@"

stdout:
stderr: 
ksh16 InitializerList (BashArray): [k]=$v and [k]="$@"

[ksh stdout] Expected "keys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '1 2 3']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\n" Got "keys: ['0', '1', '2', '3', '4', '5']\nvals: ['1', '2', '3', '[i]=1', '2', '3']\nkeys: ['0', '1', '2', '3']\nvals: ['1', '2', '3', '[i]=3 5 7']\nkeys: ['0', '1', '2', '3', '4', '5']\nvals: ['1', '2', '3', '[i]=3', '5', '7']\nkeys: ['0', '1', '2', '3', '4', '5']\nvals: ['1', '2', '3', '[i]=3', '5', '7']\nkeys: ['0', '1', '2', '3', '4', '5']\nvals: ['1', '2', '3', '[i]=3', '5', '7']\n"

stdout:
keys: ['0', '1', '2', '3', '4', '5']
vals: ['1', '2', '3', '[i]=1', '2', '3']
keys: ['0', '1', '2', '3']
vals: ['1', '2', '3', '[i]=3 5 7']
keys: ['0', '1', '2', '3', '4', '5']
vals: ['1', '2', '3', '[i]=3', '5', '7']
keys: ['0', '1', '2', '3', '4', '5']
vals: ['1', '2', '3', '[i]=3', '5', '7']
keys: ['0', '1', '2', '3', '4', '5']
vals: ['1', '2', '3', '[i]=3', '5', '7']
stderr:
toysh16 InitializerList (BashArray): [k]=$v and [k]="$@"

[toysh stdout] Expected "keys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '1 2 3']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\n" Got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
sush16 InitializerList (BashArray): [k]=$v and [k]="$@"

[sush stdout] Expected "keys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '1 2 3']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\n" Got "keys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '7']\n"

stdout:
keys: ['0', '1', '2', '5']
vals: ['1', '2', '3', '3']
keys: ['0', '1', '2', '5']
vals: ['1', '2', '3', '3 5 7']
keys: ['0', '1', '2', '5']
vals: ['1', '2', '3', '7']
keys: ['0', '1', '2', '5']
vals: ['1', '2', '3', '7']
keys: ['0', '1', '2', '5']
vals: ['1', '2', '3', '7']
stderr:
brush16 InitializerList (BashArray): [k]=$v and [k]="$@"

[brush stdout] Expected "keys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '1 2 3']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\nkeys: ['0', '1', '2', '5']\nvals: ['1', '2', '3', '3 5 7']\n" Got "keys: ['0', '1', '2']\nvals: ['1 2 3', '2', '3']\nkeys: ['0', '1', '2']\nvals: ['3 5 7', '2', '3']\nkeys: ['0', '1', '2']\nvals: ['3 5 7', '2', '3']\nkeys: ['0', '1', '2']\nvals: ['3 5 7', '2', '3']\nkeys: ['0', '1', '2']\nvals: ['3 5 7', '2', '3']\n"

stdout:
keys: ['0', '1', '2']
vals: ['1 2 3', '2', '3']
keys: ['0', '1', '2']
vals: ['3 5 7', '2', '3']
keys: ['0', '1', '2']
vals: ['3 5 7', '2', '3']
keys: ['0', '1', '2']
vals: ['3 5 7', '2', '3']
keys: ['0', '1', '2']
vals: ['3 5 7', '2', '3']
stderr:
mksh17 InitializerList (BashAssoc): [k]=$v and [k]="$@"

stdout:
stderr: 
ksh17 InitializerList (BashAssoc): [k]=$v and [k]="$@"

[ksh stdout] Expected "keys: ['i']\nvals: ['1 2 3']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\n" Got "keys: ['0', '1', '2']\nvals: ['[i]=1', '2', '3']\nkeys: ['0']\nvals: ['[i]=3 5 7']\nkeys: ['0', '1', '2']\nvals: ['[i]=3', '5', '7']\nkeys: ['0', '1', '2']\nvals: ['[i]=3', '5', '7']\nkeys: ['0', '1', '2']\nvals: ['[i]=3', '5', '7']\n"

stdout:
keys: ['0', '1', '2']
vals: ['[i]=1', '2', '3']
keys: ['0']
vals: ['[i]=3 5 7']
keys: ['0', '1', '2']
vals: ['[i]=3', '5', '7']
keys: ['0', '1', '2']
vals: ['[i]=3', '5', '7']
keys: ['0', '1', '2']
vals: ['[i]=3', '5', '7']
stderr:
E: ksh: <stdin>[4]: declare: inaccessible or not found
toysh17 InitializerList (BashAssoc): [k]=$v and [k]="$@"

[toysh stdout] Expected "keys: ['i']\nvals: ['1 2 3']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\n" Got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
sush17 InitializerList (BashAssoc): [k]=$v and [k]="$@"

[sush stdout] Expected "keys: ['i']\nvals: ['1 2 3']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['3 5 7']\n" Got "keys: ['i']\nvals: ['3']\nkeys: ['i']\nvals: ['3 5 7']\nkeys: ['i']\nvals: ['7']\nkeys: ['i']\nvals: ['7']\nkeys: ['i']\nvals: ['7']\n"

stdout:
keys: ['i']
vals: ['3']
keys: ['i']
vals: ['3 5 7']
keys: ['i']
vals: ['7']
keys: ['i']
vals: ['7']
keys: ['i']
vals: ['7']
stderr:
mksh18 InitializerList (BashArray): append to element

stdout:
stderr: 
ksh18 InitializerList (BashArray): append to element

[ksh stdout] Expected "keys: ['100']\nvals: ['12']\nkeys: ['100']\nvals: ['12:34:56']\n" Got "keys: ['0', '1']\nvals: ['[hello]=1', '[hello]+=2']\nkeys: ['0', '1', '2', '3']\nvals: ['[hello]=1', '[hello]+=2', '[hello]+=:34', '[hello]+=:56']\n"

stdout:
keys: ['0', '1']
vals: ['[hello]=1', '[hello]+=2']
keys: ['0', '1', '2', '3']
vals: ['[hello]=1', '[hello]+=2', '[hello]+=:34', '[hello]+=:56']
stderr:
toysh18 InitializerList (BashArray): append to element

[toysh stdout] Expected "keys: ['100']\nvals: ['12']\nkeys: ['100']\nvals: ['12:34:56']\n" Got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
sush18 InitializerList (BashArray): append to element

[sush stdout] Expected "keys: ['100']\nvals: ['12']\nkeys: ['100']\nvals: ['12:34:56']\n" Got "keys: ['100', '101']\nvals: ['1', '[hello]+=2']\nkeys: ['0', '1', '2', '3']\nvals: ['1', '[hello]+=2', '[hello]+=:34', '[hello]+=:56']\n"

stdout:
keys: ['100', '101']
vals: ['1', '[hello]+=2']
keys: ['0', '1', '2', '3']
vals: ['1', '[hello]+=2', '[hello]+=:34', '[hello]+=:56']
stderr:
brush18 InitializerList (BashArray): append to element

[brush stdout] Expected "keys: ['100']\nvals: ['12']\nkeys: ['100']\nvals: ['12:34:56']\n" Got "keys: ['0', '1']\nvals: ['1', '[hello]+=2']\nkeys: ['0', '1', '2', '3']\nvals: ['1', '[hello]+=2', '[hello]+=:34', '[hello]+=:56']\n"

stdout:
keys: ['0', '1']
vals: ['1', '[hello]+=2']
keys: ['0', '1', '2', '3']
vals: ['1', '[hello]+=2', '[hello]+=:34', '[hello]+=:56']
stderr:
bash19 InitializerList (BashAssoc): append to element

stdout:
keys: ['hello']
vals: ['2']
keys: ['hello']
vals: ['2:34:56']
stderr:
mksh19 InitializerList (BashAssoc): append to element

stdout:
stderr: 
ksh19 InitializerList (BashAssoc): append to element

[ksh stdout] Expected "keys: ['hello']\nvals: ['12']\nkeys: ['hello']\nvals: ['12:34:56']\n" Got "keys: ['0', '1']\nvals: ['[hello]=1', '[hello]+=2']\nkeys: ['0', '1', '2', '3']\nvals: ['[hello]=1', '[hello]+=2', '[hello]+=:34', '[hello]+=:56']\n"

stdout:
keys: ['0', '1']
vals: ['[hello]=1', '[hello]+=2']
keys: ['0', '1', '2', '3']
vals: ['[hello]=1', '[hello]+=2', '[hello]+=:34', '[hello]+=:56']
stderr:
E: ksh: <stdin>[2]: declare: inaccessible or not found
toysh19 InitializerList (BashAssoc): append to element

[toysh stdout] Expected "keys: ['hello']\nvals: ['12']\nkeys: ['hello']\nvals: ['12:34:56']\n" Got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
sush19 InitializerList (BashAssoc): append to element

[sush stdout] Expected "keys: ['hello']\nvals: ['12']\nkeys: ['hello']\nvals: ['12:34:56']\n" Got "keys: ['1', 'hello']\nvals: ['[hello]+=2', '1']\nkeys: ['0', '1', '2', '3']\nvals: ['[hello]+=2', '1', '[hello]+=:34', '[hello]+=:56']\n"

stdout:
keys: ['1', 'hello']
vals: ['[hello]+=2', '1']
keys: ['0', '1', '2', '3']
vals: ['[hello]+=2', '1', '[hello]+=:34', '[hello]+=:56']
stderr:
brush19 InitializerList (BashAssoc): append to element

[brush stdout] Expected "keys: ['hello']\nvals: ['12']\nkeys: ['hello']\nvals: ['12:34:56']\n" Got "keys: ['[hello]+=2', 'hello']\nvals: ['', '1']\nkeys: ['[hello]+=2', '[hello]+=:34', 'hello']\nvals: ['', '[hello]+=:56', '1']\n"

stdout:
keys: ['[hello]+=2', 'hello']
vals: ['', '1']
keys: ['[hello]+=2', '[hello]+=:34', 'hello']
vals: ['', '[hello]+=:56', '1']
stderr:
bash20 InitializerList (BashAssoc): non-index forms of element

stdout:
status=0
keys: ['j']
vals: ['1']
stderr:
bash: line 3: a: 2: must use subscript when assigning associative array
bash: line 3: a: 3: must use subscript when assigning associative array
bash: line 3: a: 4: must use subscript when assigning associative array
mksh20 InitializerList (BashAssoc): non-index forms of element

stdout:
stderr: 
ksh20 InitializerList (BashAssoc): non-index forms of element

[ksh stdout] Expected '', got "status=0\nkeys: ['0', '1', '2', '3']\nvals: ['[j]=1', '2', '3', '4']\n"
[ksh status] Expected 1, got 0

stdout:
status=0
keys: ['0', '1', '2', '3']
vals: ['[j]=1', '2', '3', '4']
stderr:
E: ksh: <stdin>[2]: declare: inaccessible or not found
toysh20 InitializerList (BashAssoc): non-index forms of element

[toysh status] Expected 1, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
sush20 InitializerList (BashAssoc): non-index forms of element

[sush stdout] Expected '', got "status=0\nkeys: ['1', '2', '3', 'j']\nvals: ['2', '3', '4', '1']\n"
[sush status] Expected 1, got 0

stdout:
status=0
keys: ['1', '2', '3', 'j']
vals: ['2', '3', '4', '1']
stderr:
brush20 InitializerList (BashAssoc): non-index forms of element

[brush stdout] Expected '', got "status=0\nkeys: ['2', '4', 'j']\nvals: ['3', '', '1']\n"
[brush status] Expected 1, got 0

stdout:
status=0
keys: ['2', '4', 'j']
vals: ['3', '', '1']
stderr:
mksh21 InitializerList (BashArray): evaluation order (1)

stdout:
stderr: 
ksh21 InitializerList (BashArray): evaluation order (1)

[ksh stdout] Expected "keys: ['104', '205', '306']\nvals: ['1', '2', '3']\n" Got "keys: ['0', '1', '2']\nvals: ['[100+i++]=1', '[200+i++]=2', '[300+i++]=3']\n"

stdout:
keys: ['0', '1', '2']
vals: ['[100+i++]=1', '[200+i++]=2', '[300+i++]=3']
stderr:
toysh21 InitializerList (BashArray): evaluation order (1)

[toysh stdout] Expected "keys: ['104', '205', '306']\nvals: ['1', '2', '3']\n" Got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
brush21 InitializerList (BashArray): evaluation order (1)

[brush stdout] Expected "keys: ['104', '205', '306']\nvals: ['1', '2', '3']\n" Got "keys: ['0']\nvals: ['3']\n"

stdout:
keys: ['0']
vals: ['3']
stderr:
mksh22 InitializerList (BashArray): evaluation order (2)

stdout:
stderr: 
ksh22 InitializerList (BashArray): evaluation order (2)

[ksh stdout] Expected "keys: ['0', '6', '10']\nvals: ['1+2+3', '10', 'hello']\n" Got "keys: ['0', '1', '2']\nvals: ['[0]=1+2+3', '[a[0]]=10', '[a[6]]=hello']\n"

stdout:
keys: ['0', '1', '2']
vals: ['[0]=1+2+3', '[a[0]]=10', '[a[6]]=hello']
stderr:
toysh22 InitializerList (BashArray): evaluation order (2)

[toysh stdout] Expected "keys: ['0', '6', '10']\nvals: ['1+2+3', '10', 'hello']\n" Got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
sush22 InitializerList (BashArray): evaluation order (2)

[sush stdout] Expected "keys: ['0', '6', '10']\nvals: ['1+2+3', '10', 'hello']\n" Got "keys: ['0']\nvals: ['hello']\n"

stdout:
keys: ['0']
vals: ['hello']
stderr:
brush22 InitializerList (BashArray): evaluation order (2)

[brush stdout] Expected "keys: ['0', '6', '10']\nvals: ['1+2+3', '10', 'hello']\n" Got "keys: ['0', '1', '2']\nvals: ['1+2+3', '[a[0]]=10', '[a[6]]=hello']\n"

stdout:
keys: ['0', '1', '2']
vals: ['1+2+3', '[a[0]]=10', '[a[6]]=hello']
stderr:
mksh23 InitializerList (BashArray): evaluation order (3)

stdout:
stderr: 
ksh23 InitializerList (BashArray): evaluation order (3)

[ksh stdout] Expected "keys: ['0', '1', '2', '3', '4']\nvals: ['old3', 'old1', 'old2', 'old3', 'old1']\nkeys: ['0', '1', '2', '5', '201', '202']\nvals: ['new1', 'new2', 'new3', 'old3', 'old1', 'old2']\n" Got "keys: ['0', '1', '2', '3', '4']\nvals: ['old3', 'old1', 'old2', 'old3', 'old1']\nkeys: ['0', '1', '2', '3', '4', '5', '6', '7', '8']\nvals: ['old1', 'old2', 'old3', '[0]=new1', '[1]=new2', '[2]=new3', '[5]=old3', '[a[0]]=old1', '[a[1]]=old2']\n"

stdout:
keys: ['0', '1', '2', '3', '4']
vals: ['old3', 'old1', 'old2', 'old3', 'old1']
keys: ['0', '1', '2', '3', '4', '5', '6', '7', '8']
vals: ['old1', 'old2', 'old3', '[0]=new1', '[1]=new2', '[2]=new3', '[5]=old3', '[a[0]]=old1', '[a[1]]=old2']
stderr:
toysh23 InitializerList (BashArray): evaluation order (3)

[toysh stdout] Expected "keys: ['0', '1', '2', '3', '4']\nvals: ['old3', 'old1', 'old2', 'old3', 'old1']\nkeys: ['0', '1', '2', '5', '201', '202']\nvals: ['new1', 'new2', 'new3', 'old3', 'old1', 'old2']\n" Got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
sush23 InitializerList (BashArray): evaluation order (3)

[sush stdout] Expected "keys: ['0', '1', '2', '3', '4']\nvals: ['old3', 'old1', 'old2', 'old3', 'old1']\nkeys: ['0', '1', '2', '5', '201', '202']\nvals: ['new1', 'new2', 'new3', 'old3', 'old1', 'old2']\n" Got "keys: ['0', '1', '2', '3', '4']\nvals: ['old3', 'old1', 'old2', 'old3', 'old1']\nkeys: ['0', '1', '2', '5', '101']\nvals: ['old2', 'new2', 'new3', 'old3', 'old1']\n"

stdout:
keys: ['0', '1', '2', '3', '4']
vals: ['old3', 'old1', 'old2', 'old3', 'old1']
keys: ['0', '1', '2', '5', '101']
vals: ['old2', 'new2', 'new3', 'old3', 'old1']
stderr:
brush23 InitializerList (BashArray): evaluation order (3)

[brush stdout] Expected "keys: ['0', '1', '2', '3', '4']\nvals: ['old3', 'old1', 'old2', 'old3', 'old1']\nkeys: ['0', '1', '2', '5', '201', '202']\nvals: ['new1', 'new2', 'new3', 'old3', 'old1', 'old2']\n" Got "keys: ['0', '1', '2', '3', '4']\nvals: ['old3', 'old1', 'old2', 'old3', 'old1']\nkeys: ['0', '1', '2', '5', '6', '7']\nvals: ['new1', 'new2', 'new3', 'old3', '[a[0]]=old1', '[a[1]]=old2']\n"

stdout:
keys: ['0', '1', '2', '3', '4']
vals: ['old3', 'old1', 'old2', 'old3', 'old1']
keys: ['0', '1', '2', '5', '6', '7']
vals: ['new1', 'new2', 'new3', 'old3', '[a[0]]=old1', '[a[1]]=old2']
stderr:
sush24 Issue #1069 [57] - Variable v should be visible after IFS= eval 'local v=...'

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

stdout:
stderr: 
brush24 Issue #1069 [57] - Variable v should be visible after IFS= eval 'local v=...'

[brush stdout] Expected 'v=hello\n', got 'v=h e l l o\n'

stdout:
v=h e l l o
stderr:
mksh25 Issue #1069 [59] - Assigning Str to BashArray/BashAssoc should not remove BashArray/BashAssoc

stdout:
set -A a
typeset a[0]=99
typeset a[1]=2
typeset a[2]=3
stderr:
mksh: <stdin>[7]: syntax error: '(' unexpected
ksh25 Issue #1069 [59] - Assigning Str to BashArray/BashAssoc should not remove BashArray/BashAssoc

[ksh stdout] Expected 'declare -a a=([0]="99" [1]="2" [2]="3")\ndeclare -A A=([0]="99" [k]="v" )\n' Got 'set -A a\ntypeset a[0]=99\ntypeset a[1]=2\ntypeset a[2]=3\n'
[ksh status] Expected 0, got 1

stdout:
set -A a
typeset a[0]=99
typeset a[1]=2
typeset a[2]=3
stderr:
E: ksh: <stdin>[7]: syntax error: unexpected '('
toysh25 Issue #1069 [59] - Assigning Str to BashArray/BashAssoc should not remove BashArray/BashAssoc

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

stdout:
stderr: 
munmap_chunk(): invalid pointer
sush25 Issue #1069 [59] - Assigning Str to BashArray/BashAssoc should not remove BashArray/BashAssoc

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

stdout:
declare -a a=([0]="99" [1]="2" [2]="3")
declare -a A=([0]="99")
stderr:
osh25 Issue #1069 [59] - 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:
mksh26 Issue #1069 [53] - LHS array parsing a[1 + 2]=3 (see spec/array-assign for more)

stdout:
set -A a
typeset a[3]=7
typeset a[7]=8
typeset a[9]=9
set -A a
typeset a[3]=55
typeset a[7]=8
typeset a[9]=9
typeset a[41]=66
stderr:
ksh26 Issue #1069 [53] - LHS array parsing a[1 + 2]=3 (see spec/array-assign for more)

[ksh stdout] Expected 'declare -a a=([3]="7" [7]="8" [9]="9")\ndeclare -a a=([3]="55" [7]="8" [9]="9" [41]="66")\n' Got 'set -A a\ntypeset a[3]=7\ntypeset a[7]=8\ntypeset a[9]=9\nset -A a\ntypeset a[3]=55\ntypeset a[7]=8\ntypeset a[9]=9\ntypeset a[41]=66\n'

stdout:
set -A a
typeset a[3]=7
typeset a[7]=8
typeset a[9]=9
set -A a
typeset a[3]=55
typeset a[7]=8
typeset a[9]=9
typeset a[41]=66
stderr:
toysh26 Issue #1069 [53] - LHS array parsing a[1 + 2]=3 (see spec/array-assign for more)

[toysh stdout] Expected 'declare -a a=([3]="7" [7]="8" [9]="9")\ndeclare -a a=([3]="55" [7]="8" [9]="9" [41]="66")\n' Got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
brush26 Issue #1069 [53] - LHS array parsing a[1 + 2]=3 (see spec/array-assign for more)

[brush stdout] Expected 'declare -a a=([3]="7" [7]="8" [9]="9")\ndeclare -a a=([3]="55" [7]="8" [9]="9" [41]="66")\n' Got 'declare -a a=([3]="55")\n'

stdout:
declare -a a=([3]="55")
stderr:
a[1: command not found
a[3: command not found
4]=8: command not found
ERROR main: syntax error near token `*3]=9' (line 1 col 8)
declare: a: not found
a[3: command not found
osh26 Issue #1069 [53] - LHS array parsing a[1 + 2]=3 (see spec/array-assign for more)

[osh stdout] Expected 'declare -a a=([3]="7" [7]="8" [9]="9")\ndeclare -a a=([3]="55" [7]="8" [9]="9" [41]="66")\n' Got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
  a[1 + 2]=7
  ^~
[ stdin ]:3: Command 'a[1' not found (OILS-ERR-100)
  a[3|4]=8
      ^
[ stdin ]:4: Command '4]=8' not found (OILS-ERR-100)
  a[3|4]=8
  ^~
[ stdin ]:4: Command 'a[3' not found (OILS-ERR-100)
  a[(1+2)*3]=9
    ^
[ stdin ]:5: Unexpected left paren (might need a space before it)