122 passed, 2 OK, 54 not implemented, 10 BUG, 82 failed, 0 timeouts, 0 cases skipped 2 failed under osh
dash | 0 recursive arith: one level stdout: stderr: dash: 2: Illegal number: b=123 |
toysh | 0 recursive arith: one level [toysh stdout] Expected '123\n', got '0\n' stdout: 0stderr: |
dash | 1 recursive arith: two levels stdout: stderr: dash: 2: Illegal number: b=c |
toysh | 1 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 |
dash | 2 recursive arith: short circuit &&, || stdout: 1:0stderr: dash: 3: Illegal number: b=123 |
ash | 2 recursive arith: short circuit &&, || stdout: 1:123 1:123 0:321 1:321stderr: |
mksh | 2 recursive arith: short circuit &&, || stdout: 1:123 1:123 0:321 1:321stderr: |
toysh | 2 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:0stderr: |
dash | 3 recursive arith: short circuit ?: stdout: stderr: dash: 2: Illegal number: a=123 |
ash | 3 recursive arith: short circuit ?: stdout: 123:321 321:321stderr: |
toysh | 3 recursive arith: short circuit ?: [toysh stdout] Expected '123:123\n321:321\n', got '0:0\n0:0\n' stdout: 0:0 0:0stderr: |
dash | 4 recursive arith: side effects stdout: stderr: dash: 2: Illegal number: b=c |
ash | 4 recursive arith: side effects stdout: 0:123stderr: |
zsh | 4 recursive arith: side effects stdout: 0:123stderr: |
toysh | 4 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 |
dash | 5 recursive arith: recursion stdout: stderr: dash: 2: Illegal number: i<=100&&(s+=i,i++,loop) |
ash | 5 recursive arith: recursion stdout: stderr: ash: expression recursion loop detected |
mksh | 5 recursive arith: recursion stdout: stderr: mksh: <stdin>[2]: i<=100&&(s+=i,i++,loop): expression recurses on parameter 'loop' |
ksh | 5 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' |
toysh | 5 recursive arith: recursion [toysh stdout] Expected '5050\n', got '' [toysh status] Expected 0, got -11 stdout: stderr: |
dash | 6 recursive arith: array elements stdout: stderr: dash: 1: text[1]=d=123: not found dash: 2: text[2]=text[1]: not found dash: 3: text[3]=text[2]: not found dash: 4: arithmetic expression: expecting EOF: "a=text[3]" |
ash | 6 recursive arith: array elements stdout: stderr: ash: text[1]=d=123: not found ash: text[2]=text[1]: not found ash: text[3]=text[2]: not found ash: arithmetic syntax error |
toysh | 6 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 |
toysh | 7 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=0stderr: |
toysh | 8 dynamic arith varname: read [toysh stdout] Expected 'x=12 y=34\n', got 'x=12 y=0\n' stdout: x=12 y=0stderr: |
toysh | 9 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=20stderr: sh: shopt: No such file or directory |
dash | 10 is-array with ${var@a} stdout: stderr: |
ash | 10 is-array with ${var@a} stdout: stderr: |
zsh | 10 is-array with ${var@a} stdout: stderr: ble/is-array: bad substitution |
mksh | 10 is-array with ${var@a} stdout: stderr: |
ksh | 10 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 127stderr: 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 |
toysh | 10 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: ( |
sush | 10 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 127stderr: /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 |
dash | 11 Sparse array with big index [dash stdout] Expected 'len=1\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 1: Syntax error: "(" unexpected |
ash | 11 Sparse array with big index stdout: stderr: ash: syntax error: unexpected "(" |
zsh | 11 Sparse array with big index stdout: len=1048576stderr: |
toysh | 11 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: [@]} |
dash | 12 shift unshift reverse [dash 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 '' [dash status] Expected 0, got 2 stdout: stderr: dash: 4: function: not found dash: 5: builtin: not found dash: 6: Syntax error: "}" unexpected |
ash | 12 shift unshift reverse stdout: stderr: |
zsh | 12 shift unshift reverse stdout: 1 2 3 4 5 6 2 3 4 5 6 4 5 6 --- 99 4 5 6 --- 5 4 99stderr: (eval):4: a: assignment to invalid subscript range |
mksh | 12 shift unshift reverse stdout: stderr: |
ksh | 12 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 |
toysh | 12 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 |
sush | 12 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 6stderr: /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 |
dash | 13 shopt -u expand_aliases and eval [dash stdout] Expected 'hello\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 5: function: not found dash: 6: shopt: not found dash: 1: eval: --: not found dash: 8: shopt: not found dash: 9: Syntax error: "}" unexpected |
ash | 13 shopt -u expand_aliases and eval stdout: stderr: |
zsh | 13 shopt -u expand_aliases and eval stdout: stderr: |
mksh | 13 shopt -u expand_aliases and eval stdout: stderr: |
ksh | 13 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 |
toysh | 13 shopt -u expand_aliases and eval [toysh stdout] Expected 'hello\n', got '' [toysh status] Expected 0, got -6 stdout: stderr: munmap_chunk(): invalid pointer |
brush | 13 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'. |
bash | 14 Tilde expansions in RHS of designated array initialization stdout: ~ ~:~:~stderr: |
dash | 14 Tilde expansions in RHS of designated array initialization [dash stdout] Expected '/home/user\n/home/user:/home/user:/home/user\n' Got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 4: declare: not found dash: 5: Syntax error: "(" unexpected |
ash | 14 Tilde expansions in RHS of designated array initialization stdout: stderr: |
zsh | 14 Tilde expansions in RHS of designated array initialization stdout: stderr: |
mksh | 14 Tilde expansions in RHS of designated array initialization stdout: stderr: |
ksh | 14 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 '(' |
toysh | 14 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 |
sush | 14 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'") |
brush | 14 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: |
dash | 15 InitializerList (BashArray): index increments with [dash 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 '' [dash status] Expected 0, got 2 stdout: stderr: dash: 2: Syntax error: "(" unexpected |
ash | 15 InitializerList (BashArray): index increments with stdout: stderr: |
zsh | 15 InitializerList (BashArray): index increments with stdout: stderr: |
mksh | 15 InitializerList (BashArray): index increments with stdout: stderr: |
ksh | 15 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: |
toysh | 15 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 |
dash | 16 InitializerList (BashArray): [k]=$v and [k]="$@" [dash 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 '' [dash status] Expected 0, got 2 stdout: stderr: dash: 4: Syntax error: "(" unexpected |
ash | 16 InitializerList (BashArray): [k]=$v and [k]="$@" stdout: stderr: |
zsh | 16 InitializerList (BashArray): [k]=$v and [k]="$@" stdout: stderr: |
mksh | 16 InitializerList (BashArray): [k]=$v and [k]="$@" stdout: stderr: |
ksh | 16 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: |
toysh | 16 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 |
sush | 16 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: |
brush | 16 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: |
dash | 17 InitializerList (BashAssoc): [k]=$v and [k]="$@" [dash 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 '' [dash status] Expected 0, got 2 stdout: stderr: dash: 4: declare: not found dash: 5: Syntax error: "(" unexpected |
ash | 17 InitializerList (BashAssoc): [k]=$v and [k]="$@" stdout: stderr: |
zsh | 17 InitializerList (BashAssoc): [k]=$v and [k]="$@" stdout: stderr: |
mksh | 17 InitializerList (BashAssoc): [k]=$v and [k]="$@" stdout: stderr: |
ksh | 17 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 |
toysh | 17 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 |
sush | 17 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: |
dash | 18 InitializerList (BashArray): append to element [dash stdout] Expected "keys: ['100']\nvals: ['12']\nkeys: ['100']\nvals: ['12:34:56']\n" Got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 3: Syntax error: "(" unexpected |
ash | 18 InitializerList (BashArray): append to element stdout: stderr: |
zsh | 18 InitializerList (BashArray): append to element stdout: stderr: |
mksh | 18 InitializerList (BashArray): append to element stdout: stderr: |
ksh | 18 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: |
toysh | 18 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 |
sush | 18 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: |
brush | 18 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: |
bash | 19 InitializerList (BashAssoc): append to element stdout: keys: ['hello'] vals: ['2'] keys: ['hello'] vals: ['2:34:56']stderr: |
dash | 19 InitializerList (BashAssoc): append to element [dash stdout] Expected "keys: ['hello']\nvals: ['12']\nkeys: ['hello']\nvals: ['12:34:56']\n" Got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 2: declare: not found dash: 4: Syntax error: "(" unexpected |
ash | 19 InitializerList (BashAssoc): append to element stdout: stderr: |
zsh | 19 InitializerList (BashAssoc): append to element stdout: stderr: |
mksh | 19 InitializerList (BashAssoc): append to element stdout: stderr: |
ksh | 19 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 |
toysh | 19 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 |
sush | 19 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: |
brush | 19 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: |
bash | 20 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 |
dash | 20 InitializerList (BashAssoc): non-index forms of element [dash status] Expected 1, got 2 stdout: stderr: dash: 2: declare: not found dash: 3: Syntax error: "(" unexpected |
ash | 20 InitializerList (BashAssoc): non-index forms of element stdout: stderr: |
zsh | 20 InitializerList (BashAssoc): non-index forms of element stdout: stderr: |
mksh | 20 InitializerList (BashAssoc): non-index forms of element stdout: stderr: |
ksh | 20 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 |
toysh | 20 InitializerList (BashAssoc): non-index forms of element [toysh status] Expected 1, got -6 stdout: stderr: munmap_chunk(): invalid pointer |
sush | 20 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: |
brush | 20 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: |
dash | 21 InitializerList (BashArray): evaluation order (1) [dash stdout] Expected "keys: ['104', '205', '306']\nvals: ['1', '2', '3']\n" Got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 3: Syntax error: "(" unexpected |
ash | 21 InitializerList (BashArray): evaluation order (1) stdout: stderr: |
zsh | 21 InitializerList (BashArray): evaluation order (1) stdout: stderr: |
mksh | 21 InitializerList (BashArray): evaluation order (1) stdout: stderr: |
ksh | 21 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: |
toysh | 21 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 |
brush | 21 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: |
dash | 22 InitializerList (BashArray): evaluation order (2) [dash stdout] Expected "keys: ['0', '6', '10']\nvals: ['1+2+3', '10', 'hello']\n" Got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 2: Syntax error: "(" unexpected |
ash | 22 InitializerList (BashArray): evaluation order (2) stdout: stderr: |
zsh | 22 InitializerList (BashArray): evaluation order (2) stdout: stderr: |
mksh | 22 InitializerList (BashArray): evaluation order (2) stdout: stderr: |
ksh | 22 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: |
toysh | 22 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 |
sush | 22 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: |
brush | 22 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: |
dash | 23 InitializerList (BashArray): evaluation order (3) [dash 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 '' [dash status] Expected 0, got 2 stdout: stderr: dash: 2: Syntax error: "(" unexpected |
ash | 23 InitializerList (BashArray): evaluation order (3) stdout: stderr: |
zsh | 23 InitializerList (BashArray): evaluation order (3) stdout: stderr: |
mksh | 23 InitializerList (BashArray): evaluation order (3) stdout: stderr: |
ksh | 23 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: |
toysh | 23 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 |
sush | 23 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: |
brush | 23 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: |
sush | 24 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: |
brush | 24 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 ostderr: |
dash | 25 Issue #1069 [59] - Assigning Str to BashArray/BashAssoc should not remove BashArray/BashAssoc [dash stdout] Expected 'declare -a a=([0]="99" [1]="2" [2]="3")\ndeclare -A A=([0]="99" [k]="v" )\n' Got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 3: Syntax error: "(" unexpected |
ash | 25 Issue #1069 [59] - Assigning Str to BashArray/BashAssoc should not remove BashArray/BashAssoc stdout: stderr: |
zsh | 25 Issue #1069 [59] - Assigning Str to BashArray/BashAssoc should not remove BashArray/BashAssoc stdout: stderr: |
mksh | 25 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]=3stderr: mksh: <stdin>[7]: syntax error: '(' unexpected |
ksh | 25 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]=3stderr: E: ksh: <stdin>[7]: syntax error: unexpected '(' |
toysh | 25 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 |
sush | 25 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: |
osh | 25 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=99stderr: |
dash | 26 Issue #1069 [53] - LHS array parsing a[1 + 2]=3 (see spec/array-assign for more) [dash stdout] Expected 'declare -a a=([3]="7" [7]="8" [9]="9")\ndeclare -a a=([3]="55" [7]="8" [9]="9" [41]="66")\n' Got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 3: a[1: not found dash: 4: a[3: not found dash: 4: 4]=8: not found dash: 5: Syntax error: word unexpected (expecting ")") |
ash | 26 Issue #1069 [53] - LHS array parsing a[1 + 2]=3 (see spec/array-assign for more) stdout: stderr: |
zsh | 26 Issue #1069 [53] - LHS array parsing a[1 + 2]=3 (see spec/array-assign for more) stdout: stderr: |
mksh | 26 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]=66stderr: |
ksh | 26 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]=66stderr: |
toysh | 26 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 |
brush | 26 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 [31mERROR[0m main: syntax error near token `*3]=9' (line 1 col 8) declare: a: not found a[3: command not found |
osh | 26 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) |