110 passed, 2 OK, 1 not implemented, 2 BUG, 195 failed, 0 timeouts, 0 cases skipped
dash | 0 var ref ${!a} [dash stdout] Expected 'ref c b\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 3: Bad substitution |
ash | 0 var ref ${!a} [ash stdout] Expected 'ref c b\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: bad substitution |
zsh | 0 var ref ${!a} [zsh stdout] Expected 'ref c b\n', got '' [zsh status] Expected 0, got 1 stdout: stderr: zsh: bad substitution |
mksh | 0 var ref ${!a} [mksh stdout] Expected 'ref c b\n', got 'ref a b\n' stdout: ref a bstderr: |
ksh | 0 var ref ${!a} [ksh stdout] Expected 'ref c b\n', got 'ref a b\n' stdout: ref a bstderr: |
dash | 1 ${!ref-default} [dash stdout] Expected 'x=default\nx=\nx=foo\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 2: Bad substitution |
ash | 1 ${!ref-default} [ash stdout] Expected 'x=default\nx=\nx=foo\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: bad substitution |
zsh | 1 ${!ref-default} [zsh stdout] Expected 'x=default\nx=\nx=foo\n', got '' [zsh status] Expected 0, got 1 stdout: stderr: zsh: bad substitution |
mksh | 1 ${!ref-default} [mksh stdout] Expected 'x=default\nx=\nx=foo\n', got 'x=ref\nx=ref\nx=ref\n' stdout: x=ref x=ref x=refstderr: |
ksh | 1 ${!ref-default} [ksh stdout] Expected 'x=default\nx=\nx=foo\n', got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[2]: ${!ref-default}: bad substitution |
dash | 2 ${!undef:-} [dash stdout] Expected 'NOUNSET\n', got '' [dash status] Expected 1, got 2 stdout: stderr: dash: 1: Bad substitution |
ash | 2 ${!undef:-} [ash stdout] Expected 'NOUNSET\n', got '' [ash status] Expected 1, got 2 stdout: stderr: ash: syntax error: bad substitution |
zsh | 2 ${!undef:-} [zsh stdout] Expected 'NOUNSET\n', got '' stdout: stderr: zsh: bad substitution |
mksh | 2 ${!undef:-} [mksh stdout] Expected 'NOUNSET\n', got 'undef=undef\nundef=undef\nNOUNSET\nundef=undef\nundef=undef\n' [mksh status] Expected 1, got 0 stdout: undef=undef undef=undef NOUNSET undef=undef undef=undefstderr: |
ksh | 2 ${!undef:-} [ksh stdout] Expected 'NOUNSET\n', got '' stdout: stderr: E: ksh: <stdin>[1]: ${!undef-"default"}: bad substitution |
toysh | 2 ${!undef:-} [toysh stdout] Expected 'NOUNSET\n', got "undef='default'\nundef=\nNOUNSET\nundef='default'\nundef=\n" [toysh status] Expected 1, got 0 stdout: undef='default' undef= NOUNSET undef='default' undef=stderr: |
brush | 2 ${!undef:-} [brush status] Expected 1, got 0 stdout: NOUNSETstderr: [31mERROR[0m error: failed to parse parameter '' [31mERROR[0m error: failed to parse parameter '' [31mERROR[0m error: failed to parse parameter '' [31mERROR[0m error: failed to parse parameter '' |
bash | 3 comparison to ${!array[@]} keys (similar SYNTAX) stdout: ['0', '1'] a_keys=0 [''] a_nobrackets=0 --- ['A', 'B'] A_keys=0 [''] A_nobrackets=0stderr: |
dash | 3 comparison to ${!array[@]} keys (similar SYNTAX) [dash stdout] Expected "['0', '1']\na_keys=0\n['']\na_nobrackets=0\n---\n['A', 'B']\nA_keys=0\nA_nobrackets=1\n" Got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 1: Syntax error: "(" unexpected |
ash | 3 comparison to ${!array[@]} keys (similar SYNTAX) [ash stdout] Expected "['0', '1']\na_keys=0\n['']\na_nobrackets=0\n---\n['A', 'B']\nA_keys=0\nA_nobrackets=1\n" Got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: unexpected "(" |
zsh | 3 comparison to ${!array[@]} keys (similar SYNTAX) [zsh stdout] Expected "['0', '1']\na_keys=0\n['']\na_nobrackets=0\n---\n['A', 'B']\nA_keys=0\nA_nobrackets=1\n" Got '' [zsh status] Expected 0, got 1 stdout: stderr: zsh: bad substitution |
mksh | 3 comparison to ${!array[@]} keys (similar SYNTAX) [mksh stdout] Expected "['0', '1']\na_keys=0\n['']\na_nobrackets=0\n---\n['A', 'B']\nA_keys=0\nA_nobrackets=1\n" Got '' [mksh status] Expected 0, got 1 stdout: stderr: mksh: <stdin>[1]: syntax error: '(' unexpected |
ksh | 3 comparison to ${!array[@]} keys (similar SYNTAX) [ksh stdout] Expected "['0', '1']\na_keys=0\n['']\na_nobrackets=0\n---\n['A', 'B']\nA_keys=0\nA_nobrackets=1\n" Got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[1]: syntax error: unexpected '(' |
toysh | 3 comparison to ${!array[@]} keys (similar SYNTAX) [toysh stdout] Expected "['0', '1']\na_keys=0\n['']\na_nobrackets=0\n---\n['A', 'B']\nA_keys=0\nA_nobrackets=1\n" Got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ) |
sush | 3 comparison to ${!array[@]} keys (similar SYNTAX) [sush stdout] Expected "['0', '1']\na_keys=0\n['']\na_nobrackets=0\n---\n['A', 'B']\nA_keys=0\nA_nobrackets=1\n" Got "['0', '1']\na_keys=0\n['']\na_nobrackets=0\n---\n['0']\nA_keys=0\n['']\nA_nobrackets=0\n" stdout: ['0', '1'] a_keys=0 [''] a_nobrackets=0 --- ['0'] A_keys=0 [''] A_nobrackets=0stderr: |
dash | 4 ${!a[@]-'default'} is legal but fails with more than one element [dash stdout] Expected 'status=1\nstatus=1\n', got 'status=2\n' [dash status] Expected 0, got 2 stdout: status=2stderr: dash: 1: Bad substitution dash: 4: Syntax error: "(" unexpected |
ash | 4 ${!a[@]-'default'} is legal but fails with more than one element [ash stdout] Expected 'status=1\nstatus=1\n', got 'status=2\n' [ash status] Expected 0, got 2 stdout: status=2stderr: ash: syntax error: bad substitution ash: syntax error: unexpected "(" |
mksh | 4 ${!a[@]-'default'} is legal but fails with more than one element [mksh stdout] Expected 'status=1\nstatus=1\n', got "['default']\nstatus=0\n['0', '1', '2']\nstatus=0\n" stdout: ['default'] status=0 ['0', '1', '2'] status=0stderr: |
toysh | 4 ${!a[@]-'default'} is legal but fails with more than one element [toysh stdout] Expected 'status=1\nstatus=1\n', got "['']\nstatus=0\n" [toysh status] Expected 0, got 2 stdout: [''] status=0stderr: main: line 4: sh: syntax error: x |
dash | 5 var ref to $@ with @ [dash stdout] Expected 'ref=one two\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 3: Bad substitution |
ash | 5 var ref to $@ with @ [ash stdout] Expected 'ref=one two\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: bad substitution |
zsh | 5 var ref to $@ with @ [zsh stdout] Expected 'ref=one two\n', got '' [zsh status] Expected 0, got 1 stdout: stderr: zsh: bad substitution |
mksh | 5 var ref to $@ with @ [mksh stdout] Expected 'ref=one two\n', got 'ref=ref\n' stdout: ref=refstderr: |
ksh | 5 var ref to $@ with @ [ksh stdout] Expected 'ref=one two\n', got 'ref=ref\n' stdout: ref=refstderr: |
toysh | 5 var ref to $@ with @ [toysh stdout] Expected 'ref=one two\n', got '' [toysh status] Expected 0, got 1 stdout: stderr: set: bad -- main: line 3: sh: @: bad substitution |
dash | 6 var ref to $1 and $2 with 1 and 2 [dash stdout] Expected 'ref1=one\nref2=two\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 3: Bad substitution |
ash | 6 var ref to $1 and $2 with 1 and 2 [ash stdout] Expected 'ref1=one\nref2=two\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: bad substitution |
zsh | 6 var ref to $1 and $2 with 1 and 2 [zsh stdout] Expected 'ref1=one\nref2=two\n', got '' [zsh status] Expected 0, got 1 stdout: stderr: zsh: bad substitution |
mksh | 6 var ref to $1 and $2 with 1 and 2 [mksh stdout] Expected 'ref1=one\nref2=two\n', got 'ref1=ref1\nref2=ref2\n' stdout: ref1=ref1 ref2=ref2stderr: |
ksh | 6 var ref to $1 and $2 with 1 and 2 [ksh stdout] Expected 'ref1=one\nref2=two\n', got 'ref1=ref1\nref2=ref2\n' stdout: ref1=ref1 ref2=ref2stderr: |
toysh | 6 var ref to $1 and $2 with 1 and 2 [toysh stdout] Expected 'ref1=one\nref2=two\n', got 'ref1=\nref2=\n' stdout: ref1= ref2=stderr: set: bad -- |
dash | 7 var ref: 1, @, * [dash stdout] Expected "['x']\n['x', 'y']\n['x y']\n", got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 2: Bad substitution |
ash | 7 var ref: 1, @, * [ash stdout] Expected "['x']\n['x', 'y']\n['x y']\n", got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: bad substitution |
zsh | 7 var ref: 1, @, * [zsh stdout] Expected "['x']\n['x', 'y']\n['x y']\n", got '' [zsh status] Expected 0, got 1 stdout: stderr: zsh: bad substitution |
mksh | 7 var ref: 1, @, * [mksh stdout] Expected "['x']\n['x', 'y']\n['x y']\n", got "['ref']\n['ref']\n['ref']\n" stdout: ['ref'] ['ref'] ['ref']stderr: |
ksh | 7 var ref: 1, @, * [ksh stdout] Expected "['x']\n['x', 'y']\n['x y']\n", got "['ref']\n['ref']\n['ref']\n" stdout: ['ref'] ['ref'] ['ref']stderr: |
toysh | 7 var ref: 1, @, * [toysh stdout] Expected "['x']\n['x', 'y']\n['x y']\n", got "['']\n" [toysh status] Expected 0, got 1 stdout: ['']stderr: set: bad -- main: line 3: sh: @: bad substitution main: line 4: sh: *: bad substitution |
sush | 7 var ref: 1, @, * [sush stdout] Expected "['x']\n['x', 'y']\n['x y']\n", got "['x']\n['x y']\n['x y']\n" stdout: ['x'] ['x y'] ['x y']stderr: |
dash | 8 var ref to special var BASH_SOURCE [dash stdout] Expected 'lineno=2\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 2: Bad substitution |
ash | 8 var ref to special var BASH_SOURCE [ash stdout] Expected 'lineno=2\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: bad substitution |
zsh | 8 var ref to special var BASH_SOURCE [zsh stdout] Expected 'lineno=2\n', got '' [zsh status] Expected 0, got 1 stdout: stderr: zsh: bad substitution |
mksh | 8 var ref to special var BASH_SOURCE [mksh stdout] Expected 'lineno=2\n', got 'lineno=ref\n' stdout: lineno=refstderr: |
ksh | 8 var ref to special var BASH_SOURCE [ksh stdout] Expected 'lineno=2\n', got 'lineno=ref\n' stdout: lineno=refstderr: |
dash | 9 var ref to $? with '?' [dash stdout] Expected 'myfunc\n0\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 3: Bad substitution |
ash | 9 var ref to $? with '?' [ash stdout] Expected 'myfunc\n0\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: bad substitution |
zsh | 9 var ref to $? with '?' [zsh stdout] Expected 'myfunc\n0\n', got '' [zsh status] Expected 0, got 1 stdout: stderr: myfunc:2: bad substitution |
mksh | 9 var ref to $? with '?' [mksh stdout] Expected 'myfunc\n0\n', got 'ref\nref\n' stdout: ref refstderr: |
ksh | 9 var ref to $? with '?' [ksh stdout] Expected 'myfunc\n0\n', got 'ref\nref\n' stdout: ref refstderr: |
toysh | 9 var ref to $? with '?' [toysh stdout] Expected 'myfunc\n0\n', got '\n0\n' stdout: 0stderr: |
dash | 10 Var ref, then assignment with ${ := } [dash stdout] Expected 'foo\nfoo\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 3: Bad substitution |
ash | 10 Var ref, then assignment with ${ := } [ash stdout] Expected 'foo\nfoo\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: bad substitution |
zsh | 10 Var ref, then assignment with ${ := } [zsh stdout] Expected 'foo\nfoo\n', got '' [zsh status] Expected 0, got 1 stdout: stderr: zsh: bad substitution |
mksh | 10 Var ref, then assignment with ${ := } [mksh stdout] Expected 'foo\nfoo\n', got '' [mksh status] Expected 0, got 1 stdout: stderr: mksh: <stdin>[3]: ${!z:=foo}: bad substitution |
ksh | 10 Var ref, then assignment with ${ := } [ksh stdout] Expected 'foo\nfoo\n', got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[3]: ${!z:=foo}: bad substitution |
toysh | 10 Var ref, then assignment with ${ := } [toysh stdout] Expected 'foo\nfoo\n', got 'foo\n' [toysh status] Expected 0, got 1 stdout: foostderr: main: line 4: sh: bad ${!z:=bar} @ 5 |
brush | 10 Var ref, then assignment with ${ := } [brush stdout] Expected 'foo\nfoo\n', got 'foo\nbar\n' stdout: foo barstderr: |
dash | 11 Var ref, then error with ${ ? } [dash status] Expected 1, got 2 stdout: stderr: dash: 3: Bad substitution |
ash | 11 Var ref, then error with ${ ? } [ash status] Expected 1, got 2 stdout: stderr: ash: syntax error: bad substitution |
mksh | 11 Var ref, then error with ${ ? } [mksh stdout] Expected '', got 'w\ndone\n' [mksh status] Expected 1, got 0 stdout: w donestderr: |
toysh | 11 Var ref, then error with ${ ? } [toysh stdout] Expected '', got 'done\n' [toysh status] Expected 1, got 0 stdout: donestderr: main: line 3: sh: ww: 'my message' |
sush | 11 Var ref, then error with ${ ? } [sush stdout] Expected '', got 'done\n' [sush status] Expected 1, got 0 stdout: donestderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: ww: my message |
brush | 11 Var ref, then error with ${ ? } [brush stdout] Expected '', got 'done\n' [brush status] Expected 1, got 0 stdout: donestderr: [31mERROR[0m error: expansion error: my message |
dash | 12 Indirect expansion, THEN suffix operators [dash stdout] Expected 'ok\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 22: Syntax error: "(" unexpected |
ash | 12 Indirect expansion, THEN suffix operators [ash stdout] Expected 'ok\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: unexpected "(" |
zsh | 12 Indirect expansion, THEN suffix operators [zsh stdout] Expected 'ok\n', got '${!a[1]} -> expected xx, got \n${!b[1]} -> expected asdf, got \n${!y:-foo} -> expected foo, got \n${!x:-foo} -> expected aaabcc, got \n${!x:?oops} -> expected aaabcc, got \n${!x:+foo} -> expected foo, got \n${!x:2} -> expected abcc, got \n${!x:2:2} -> expected ab, got \n${!x#*a} -> expected aabcc, got \n${!x%%c*} -> expected aaab, got \n${!x/a*b/d} -> expected dcc, got \n${!p@P} -> expected $ , got \nok\n' stdout: ${!a[1]} -> expected xx, got ${!b[1]} -> expected asdf, got ${!y:-foo} -> expected foo, got ${!x:-foo} -> expected aaabcc, got ${!x:?oops} -> expected aaabcc, got ${!x:+foo} -> expected foo, got ${!x:2} -> expected abcc, got ${!x:2:2} -> expected ab, got ${!x#*a} -> expected aabcc, got ${!x%%c*} -> expected aaab, got ${!x/a*b/d} -> expected dcc, got ${!p@P} -> expected $ , got okstderr: (eval):1: bad substitution (eval):1: bad substitution (eval):1: bad substitution (eval):1: bad substitution (eval):1: bad substitution (eval):1: bad substitution (eval):1: bad substitution (eval):1: bad substitution (eval):1: bad substitution (eval):1: bad substitution (eval):1: bad substitution (eval):1: bad substitution (eval):1: bad substitution |
mksh | 12 Indirect expansion, THEN suffix operators [mksh stdout] Expected 'ok\n', got '${!a[1]} -> expected xx, got a[1]\n${!b[1]} -> expected asdf, got b[1]\n${!y:-foo} -> expected foo, got y\n${!x:-foo} -> expected aaabcc, got x\n${!x:?oops} -> expected aaabcc, got x\n${!y:+foo} -> expected , got foo\n${!x:2} -> expected abcc, got \n${!x:2:2} -> expected ab, got \n${!x#*a} -> expected aabcc, got xx\n${!x%%c*} -> expected aaab, got xx\n${!x/a*b/d} -> expected dcc, got xx\n${!p@P} -> expected $ , got p\nok\n' stdout: ${!a[1]} -> expected xx, got a[1] ${!b[1]} -> expected asdf, got b[1] ${!y:-foo} -> expected foo, got y ${!x:-foo} -> expected aaabcc, got x ${!x:?oops} -> expected aaabcc, got x ${!y:+foo} -> expected , got foo ${!x:2} -> expected abcc, got ${!x:2:2} -> expected ab, got ${!x#*a} -> expected aabcc, got xx ${!x%%c*} -> expected aaab, got xx ${!x/a*b/d} -> expected dcc, got xx ${!p@P} -> expected $ , got p okstderr: |
ksh | 12 Indirect expansion, THEN suffix operators [ksh stdout] Expected 'ok\n', got 'bad success: ${!#x}\nbad success: ${!#a[@]}\n${!a[1]} -> expected xx, got a[1]\n${!b[1]} -> expected asdf, got b[1]\n${!y:-foo} -> expected foo, got \n${!x:-foo} -> expected aaabcc, got \n${!x:?oops} -> expected aaabcc, got \n${!x:+foo} -> expected foo, got \n${!x:2} -> expected abcc, got \n${!x:2:2} -> expected ab, got \n${!x#*a} -> expected aabcc, got \n${!x%%c*} -> expected aaab, got \n${!x/a*b/d} -> expected dcc, got \n${!p@P} -> expected $ , got \nok\n' stdout: bad success: ${!#x} bad success: ${!#a[@]} ${!a[1]} -> expected xx, got a[1] ${!b[1]} -> expected asdf, got b[1] ${!y:-foo} -> expected foo, got ${!x:-foo} -> expected aaabcc, got ${!x:?oops} -> expected aaabcc, got ${!x:+foo} -> expected foo, got ${!x:2} -> expected abcc, got ${!x:2:2} -> expected ab, got ${!x#*a} -> expected aabcc, got ${!x%%c*} -> expected aaab, got ${!x/a*b/d} -> expected dcc, got ${!p@P} -> expected $ , got okstderr: E: ksh: ${!y:-foo}: bad substitution E: ksh: ${!x:-foo}: bad substitution E: ksh: ${!x:?oops}: bad substitution E: ksh: ${!y:+foo}: bad substitution E: ksh: ${!x:+foo}: bad substitution E: ksh: ${!x: 2}: bad substitution E: ksh: ${!x: 2:2}: bad substitution E: ksh: ${!x#*a}: bad substitution E: ksh: ${!x%%c*}: bad substitution E: ksh: ${!x/a*b/d}: bad substitution E: ksh: ${!p@P}: bad substitution |
toysh | 12 Indirect expansion, THEN suffix operators [toysh stdout] Expected 'ok\n', got 'bad success: ${!!xd}\nbad success: ${!!x*}\n' [toysh status] Expected 0, got 2 stdout: bad success: ${!!xd} bad success: ${!!x*}stderr: main: line 22: sh: syntax error: asdf |
sush | 12 Indirect expansion, THEN suffix operators [sush stdout] Expected 'ok\n', got '${!x:2} -> expected abcc, got \n${!x:2:2} -> expected ab, got \n${!p@P} -> expected $ , got \nok\n' stdout: ${!x:2} -> expected abcc, got ${!x:2:2} -> expected ab, got ${!p@P} -> expected $ , got okstderr: |
dash | 13 var ref OF array var -- silent a[0] decay [dash stdout] Expected 'first=\nfirst=zzz\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 1: Syntax error: "(" unexpected |
ash | 13 var ref OF array var -- silent a[0] decay [ash stdout] Expected 'first=\nfirst=zzz\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: unexpected "(" |
zsh | 13 var ref OF array var -- silent a[0] decay [zsh stdout] Expected 'first=\nfirst=zzz\n', got '' [zsh status] Expected 0, got 1 stdout: stderr: zsh: bad substitution |
mksh | 13 var ref OF array var -- silent a[0] decay [mksh stdout] Expected 'first=\nfirst=zzz\n', got '' [mksh status] Expected 0, got 1 stdout: stderr: mksh: <stdin>[1]: syntax error: '(' unexpected |
ksh | 13 var ref OF array var -- silent a[0] decay [ksh stdout] Expected 'first=\nfirst=zzz\n', got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[1]: syntax error: unexpected '(' |
toysh | 13 var ref OF array var -- silent a[0] decay [toysh stdout] Expected 'first=\nfirst=zzz\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ) |
dash | 14 array ref [dash stdout] Expected 'ale\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 1: Syntax error: "(" unexpected |
ash | 14 array ref [ash stdout] Expected 'ale\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: unexpected "(" |
zsh | 14 array ref [zsh stdout] Expected 'ale\n', got '' [zsh status] Expected 0, got 1 stdout: stderr: zsh: bad substitution |
mksh | 14 array ref [mksh stdout] Expected 'ale\n', got '' [mksh status] Expected 0, got 1 stdout: stderr: mksh: <stdin>[1]: syntax error: '(' unexpected |
ksh | 14 array ref [ksh stdout] Expected 'ale\n', got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[1]: syntax error: unexpected '(' |
toysh | 14 array ref [toysh stdout] Expected 'ale\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ) |
bash | 15 array ref with strict_array stdout: alestderr: bash: line 1: shopt: strict_array: invalid shell option name |
dash | 15 array ref with strict_array [dash status] Expected 1, got 2 stdout: stderr: dash: 1: shopt: not found dash: 3: Syntax error: "(" unexpected |
ash | 15 array ref with strict_array [ash status] Expected 1, got 2 stdout: stderr: ash: shopt: not found ash: syntax error: unexpected "(" |
toysh | 15 array ref with strict_array [toysh status] Expected 1, got 2 stdout: stderr: sh: shopt: No such file or directory main: line 3: sh: syntax error: ) |
sush | 15 array ref with strict_array [sush stdout] Expected u'', got 'ale\n' [sush status] Expected 1, got 0 stdout: alestderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: shopt: strict_array: not supported yet |
brush | 15 array ref with strict_array [brush stdout] Expected u'', got 'ale\n' [brush status] Expected 1, got 0 stdout: alestderr: shopt: strict_array: invalid shell option name |
dash | 16 var ref TO array var [dash stdout] Expected 'ale\nale bean\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 1: shopt: not found dash: 3: Syntax error: "(" unexpected |
ash | 16 var ref TO array var [ash stdout] Expected 'ale\nale bean\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: shopt: not found ash: syntax error: unexpected "(" |
zsh | 16 var ref TO array var [zsh stdout] Expected 'ale\nale bean\n', got '' [zsh status] Expected 0, got 1 stdout: stderr: zsh: command not found: shopt zsh: bad substitution |
mksh | 16 var ref TO array var [mksh stdout] Expected 'ale\nale bean\n', got '' [mksh status] Expected 0, got 1 stdout: stderr: mksh: <stdin>[1]: shopt: not found mksh: <stdin>[3]: syntax error: '(' unexpected |
ksh | 16 var ref TO array var [ksh stdout] Expected 'ale\nale bean\n', got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[1]: shopt: inaccessible or not found E: ksh: <stdin>[3]: syntax error: unexpected '(' |
toysh | 16 var ref TO array var [toysh stdout] Expected 'ale\nale bean\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: sh: shopt: No such file or directory main: line 3: sh: syntax error: ) |
dash | 17 var ref TO array var, with subscripts [dash stdout] Expected "['']\n['x']\n['z']\n['x', 'y', 'z']\n['x y z']\n" Got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 2: Bad substitution |
ash | 17 var ref TO array var, with subscripts [ash stdout] Expected "['']\n['x']\n['z']\n['x', 'y', 'z']\n['x y z']\n" Got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: bad substitution |
zsh | 17 var ref TO array var, with subscripts [zsh stdout] Expected "['']\n['x']\n['z']\n['x', 'y', 'z']\n['x y z']\n" Got '' [zsh status] Expected 0, got 1 stdout: stderr: f:1: bad substitution |
mksh | 17 var ref TO array var, with subscripts [mksh stdout] Expected "['']\n['x']\n['z']\n['x', 'y', 'z']\n['x y z']\n" Got "['1']\n['1']\n['1']\n['1']\n['1']\n" stdout: ['1'] ['1'] ['1'] ['1'] ['1']stderr: |
ksh | 17 var ref TO array var, with subscripts [ksh stdout] Expected "['']\n['x']\n['z']\n['x', 'y', 'z']\n['x y z']\n" Got "['1']\n['1']\n['1']\n['1']\n['1']\n" stdout: ['1'] ['1'] ['1'] ['1'] ['1']stderr: |
toysh | 17 var ref TO array var, with subscripts [toysh stdout] Expected "['']\n['x']\n['z']\n['x', 'y', 'z']\n['x y z']\n" Got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 4: sh: nonexistent[0]: bad substitution main: line 5: sh: syntax error: x |
sush | 17 var ref TO array var, with subscripts [sush stdout] Expected "['']\n['x']\n['z']\n['x', 'y', 'z']\n['x y z']\n" Got "['']\n['x']\n['z']\n['x y z']\n['x y z']\n" stdout: [''] ['x'] ['z'] ['x y z'] ['x y z']stderr: |
dash | 18 var ref TO assoc array a[key] [dash stdout] Expected 'ref=\nref_SUB=bean\nref_SUB_QUOTED=bean\nref_SUB_BAD=\n' Got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 1: shopt: not found dash: 3: Syntax error: "(" unexpected |
ash | 18 var ref TO assoc array a[key] [ash stdout] Expected 'ref=\nref_SUB=bean\nref_SUB_QUOTED=bean\nref_SUB_BAD=\n' Got '' [ash status] Expected 0, got 2 stdout: stderr: ash: shopt: not found ash: syntax error: unexpected "(" |
zsh | 18 var ref TO assoc array a[key] [zsh stdout] Expected 'ref=\nref_SUB=bean\nref_SUB_QUOTED=bean\nref_SUB_BAD=\n' Got '' [zsh status] Expected 0, got 1 stdout: stderr: zsh: command not found: shopt zsh: no matches found: [ale]=bean zsh: bad substitution |
mksh | 18 var ref TO assoc array a[key] [mksh stdout] Expected 'ref=\nref_SUB=bean\nref_SUB_QUOTED=bean\nref_SUB_BAD=\n' Got '' [mksh status] Expected 0, got 1 stdout: stderr: mksh: <stdin>[1]: shopt: not found mksh: <stdin>[3]: syntax error: '(' unexpected |
ksh | 18 var ref TO assoc array a[key] [ksh stdout] Expected 'ref=\nref_SUB=bean\nref_SUB_QUOTED=bean\nref_SUB_BAD=\n' Got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[1]: shopt: inaccessible or not found E: ksh: <stdin>[3]: syntax error: unexpected '(' |
toysh | 18 var ref TO assoc array a[key] [toysh stdout] Expected 'ref=\nref_SUB=bean\nref_SUB_QUOTED=bean\nref_SUB_BAD=\n' Got '' [toysh status] Expected 0, got 2 stdout: stderr: sh: shopt: No such file or directory main: line 3: sh: syntax error: ) |
sush | 18 var ref TO assoc array a[key] [sush stdout] Expected 'ref=\nref_SUB=bean\nref_SUB_QUOTED=bean\nref_SUB_BAD=\n' Got 'ref=dip\nref_SUB=dip\nref_SUB_QUOTED=dip\nref_SUB_BAD=dip\n' stdout: ref=dip ref_SUB=dip ref_SUB_QUOTED=dip ref_SUB_BAD=dipstderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: shopt: compat_array: not supported yet |
dash | 19 var ref TO array with arbitrary subscripts [dash stdout] Expected 'works: a[1]\nworks: a[$b]\nworks: a[${c:-1}]\nworks: a[$(echo 1)]\nworks: a[$(( 3 - 2 ))]\n' Got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 1: shopt: not found dash: 9: Syntax error: "(" unexpected |
ash | 19 var ref TO array with arbitrary subscripts [ash stdout] Expected 'works: a[1]\nworks: a[$b]\nworks: a[${c:-1}]\nworks: a[$(echo 1)]\nworks: a[$(( 3 - 2 ))]\n' Got '' [ash status] Expected 0, got 2 stdout: stderr: ash: shopt: not found ash: syntax error: unexpected "(" |
zsh | 19 var ref TO array with arbitrary subscripts [zsh stdout] Expected 'works: a[1]\nworks: a[$b]\nworks: a[${c:-1}]\nworks: a[$(echo 1)]\nworks: a[$(( 3 - 2 ))]\n' Got '' stdout: stderr: zsh: command not found: shopt f:1: bad substitution f:1: bad substitution f:1: bad substitution f:1: bad substitution f:1: bad substitution f:1: bad substitution f:1: bad substitution f:1: bad substitution f:1: bad substitution f:1: bad substitution |
mksh | 19 var ref TO array with arbitrary subscripts [mksh stdout] Expected 'works: a[1]\nworks: a[$b]\nworks: a[${c:-1}]\nworks: a[$(echo 1)]\nworks: a[$(( 3 - 2 ))]\n' Got '' stdout: stderr: mksh: <stdin>[1]: shopt: not found |
ksh | 19 var ref TO array with arbitrary subscripts [ksh stdout] Expected 'works: a[1]\nworks: a[$b]\nworks: a[${c:-1}]\nworks: a[$(echo 1)]\nworks: a[$(( 3 - 2 ))]\n' Got '' stdout: stderr: E: ksh: <stdin>[1]: shopt: inaccessible or not found |
toysh | 19 var ref TO array with arbitrary subscripts [toysh stdout] Expected 'works: a[1]\nworks: a[$b]\nworks: a[${c:-1}]\nworks: a[$(echo 1)]\nworks: a[$(( 3 - 2 ))]\n' Got '' [toysh status] Expected 0, got 2 stdout: stderr: sh: shopt: No such file or directory main: line 9: sh: syntax error: x |
dash | 20 Bizarre tilde expansion in array index [dash status] Expected 1, got 2 stdout: stderr: dash: 1: Syntax error: "(" unexpected |
ash | 20 Bizarre tilde expansion in array index [ash status] Expected 1, got 2 stdout: stderr: ash: syntax error: unexpected "(" |
mksh | 20 Bizarre tilde expansion in array index [mksh status] Expected 1, got 0 stdout: refstderr: |
ksh | 20 Bizarre tilde expansion in array index [ksh status] Expected 1, got 0 stdout: refstderr: |
toysh | 20 Bizarre tilde expansion in array index [toysh status] Expected 1, got 2 stdout: stderr: main: line 1: sh: syntax error: x |
dash | 21 Indirect expansion TO fancy expansion features bash disallows [dash stdout] Expected 'done\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 8: Syntax error: "(" unexpected |
ash | 21 Indirect expansion TO fancy expansion features bash disallows [ash stdout] Expected 'done\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: unexpected "(" |
zsh | 21 Indirect expansion TO fancy expansion features bash disallows [zsh stdout] Expected 'done\n', got '' [zsh status] Expected 0, got 1 stdout: stderr: zsh: no matches found: [k]=r |
mksh | 21 Indirect expansion TO fancy expansion features bash disallows [mksh stdout] Expected 'done\n', got '!x x\n!a[0] a[0]\n!a@ a\ndone\n' stdout: !x x !a[0] a[0] !a@ a donestderr: mksh: <stdin>[9]: declare: not found mksh: missing ] mksh: missing ] |
ksh | 21 Indirect expansion TO fancy expansion features bash disallows [ksh stdout] Expected 'done\n', got '!x x\n!a[0] a[0]\n!a@ \ndone\n' stdout: !x x !a[0] a[0] !a@ donestderr: E: ksh: <stdin>[9]: declare: inaccessible or not found E: ksh: missing ] E: ksh: missing ] E: ksh: ${!a@}: bad substitution |
toysh | 21 Indirect expansion TO fancy expansion features bash disallows [toysh stdout] Expected 'done\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 8: sh: syntax error: x |
sush | 21 Indirect expansion TO fancy expansion features bash disallows [sush stdout] Expected 'done\n', got 'a[0 x\naa[k s\ndone\n' stdout: a[0 x aa[k s donestderr: |
dash | 22 Bad var ref [dash stdout] Expected 'status=1\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 2: Bad substitution |
ash | 22 Bad var ref [ash stdout] Expected 'status=1\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: bad substitution |
zsh | 22 Bad var ref [zsh stdout] Expected 'status=1\n', got '' [zsh status] Expected 0, got 1 stdout: stderr: zsh: bad substitution |
mksh | 22 Bad var ref [mksh stdout] Expected 'status=1\n', got 'ref a\nstatus=0\n' stdout: ref a status=0stderr: |
ksh | 22 Bad var ref [ksh stdout] Expected 'status=1\n', got 'ref a\nstatus=0\n' stdout: ref a status=0stderr: |
dash | 23 Bad var ref 2 [dash stdout] Expected 'status=1\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 2: Bad substitution |
ash | 23 Bad var ref 2 [ash stdout] Expected 'status=1\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: bad substitution |
zsh | 23 Bad var ref 2 [zsh stdout] Expected 'status=1\n', got '' [zsh status] Expected 0, got 1 stdout: stderr: zsh: bad substitution |
mksh | 23 Bad var ref 2 [mksh stdout] Expected 'status=1\n', got 'ref b\nstatus=0\n' stdout: ref b status=0stderr: |
ksh | 23 Bad var ref 2 [ksh stdout] Expected 'status=1\n', got 'ref b\nstatus=0\n' stdout: ref b status=0stderr: |
dash | 24 ${!OPTIND} (used by bash completion [dash stdout] Expected 'a\nx\ny\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 2: Bad substitution |
ash | 24 ${!OPTIND} (used by bash completion [ash stdout] Expected 'a\nx\ny\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: bad substitution |
zsh | 24 ${!OPTIND} (used by bash completion [zsh stdout] Expected 'a\nx\ny\n', got '' [zsh status] Expected 0, got 1 stdout: stderr: zsh: bad substitution |
mksh | 24 ${!OPTIND} (used by bash completion [mksh stdout] Expected 'a\nx\ny\n', got 'OPTIND\nOPTIND\nOPTIND\n' stdout: OPTIND OPTIND OPTINDstderr: |
ksh | 24 ${!OPTIND} (used by bash completion [ksh stdout] Expected 'a\nx\ny\n', got 'OPTIND\nOPTIND\nOPTIND\n' stdout: OPTIND OPTIND OPTINDstderr: |
toysh | 24 ${!OPTIND} (used by bash completion [toysh stdout] Expected 'a\nx\ny\n', got '\nx\nx\n' stdout: x xstderr: set: bad -- |
bash | 25 var ref doesn't need cycle detection stdout: cycle=x cycle=stderr: bash: line 7: warning: a: circular name reference |
dash | 25 var ref doesn't need cycle detection [dash stdout] Expected 'cycle=x\n', got '' [dash status] Expected 1, got 2 stdout: stderr: dash: 3: Bad substitution |
ash | 25 var ref doesn't need cycle detection [ash stdout] Expected 'cycle=x\n', got '' [ash status] Expected 1, got 2 stdout: stderr: ash: syntax error: bad substitution |
zsh | 25 var ref doesn't need cycle detection [zsh stdout] Expected 'cycle=x\n', got '' stdout: stderr: zsh: bad substitution |
ksh | 25 var ref doesn't need cycle detection [ksh stdout] Expected 'cycle=x\n', got 'cycle=x\ncycle=\n' [ksh status] Expected 1, got 0 stdout: cycle=x cycle=stderr: E: ksh: <stdin>[6]: typeset: b: expression recurses on parameter |
toysh | 25 var ref doesn't need cycle detection [toysh stdout] Expected 'cycle=x\n', got 'cycle=x\ncycle=\n' [toysh status] Expected 1, got 0 stdout: cycle=x cycle=stderr: sh: typeset: No such file or directory sh: typeset: No such file or directory |
sush | 25 var ref doesn't need cycle detection [sush stdout] Expected 'cycle=x\n', got 'cycle=x\ncycle=b\n' [sush status] Expected 1, got 0 stdout: cycle=x cycle=bstderr: |
brush | 25 var ref doesn't need cycle detection [brush stdout] Expected 'cycle=x\n', got 'cycle=x\ncycle=b\n' [brush status] Expected 1, got 0 stdout: cycle=x cycle=bstderr: |
bash | 26 Var Ref Code Injection $(tee PWNED) stdout: 42 PWNED 0stderr: |
dash | 26 Var Ref Code Injection $(tee PWNED) [dash status] Expected 1, got 2 stdout: stderr: dash: 1: typeset: not found dash: 2: Syntax error: "(" unexpected |
ash | 26 Var Ref Code Injection $(tee PWNED) [ash status] Expected 1, got 2 stdout: stderr: ash: typeset: not found ash: syntax error: unexpected "(" |
mksh | 26 Var Ref Code Injection $(tee PWNED) [mksh stdout] Expected '', got 'x\nNOPE\n' [mksh status] Expected 1, got 0 stdout: x NOPEstderr: |
ksh | 26 Var Ref Code Injection $(tee PWNED) [ksh stdout] Expected '', got 'x\nNOPE\n' [ksh status] Expected 1, got 0 stdout: x NOPEstderr: |
toysh | 26 Var Ref Code Injection $(tee PWNED) [toysh status] Expected 1, got 2 stdout: stderr: sh: typeset: No such file or directory main: line 2: sh: syntax error: 42 |
sush | 26 Var Ref Code Injection $(tee PWNED) [sush stdout] Expected '', got '42\nPWNED\n0\n' [sush status] Expected 1, got 0 stdout: 42 PWNED 0stderr: |
brush | 26 Var Ref Code Injection $(tee PWNED) [brush stdout] Expected '', got '42\nPWNED\n0\n' [brush status] Expected 1, got 0 stdout: 42 PWNED 0stderr: |
dash | 27 ${!array_ref:-set} and ${!array_ref:=assign} [dash stdout] Expected "==== check ====\n['', '', '']\n['', '', '']\n==== assign ====\n['', '', '']\n['', '', '']\n['', '', '']\n['', '', '']\n" Got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 2: Syntax error: "(" unexpected |
ash | 27 ${!array_ref:-set} and ${!array_ref:=assign} [ash stdout] Expected "==== check ====\n['', '', '']\n['', '', '']\n==== assign ====\n['', '', '']\n['', '', '']\n['', '', '']\n['', '', '']\n" Got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: unexpected "(" |
zsh | 27 ${!array_ref:-set} and ${!array_ref:=assign} [zsh stdout] Expected "==== check ====\n['', '', '']\n['', '', '']\n==== assign ====\n['', '', '']\n['', '', '']\n['', '', '']\n['', '', '']\n" Got '==== check ====\n' [zsh status] Expected 0, got 1 stdout: ==== check ====stderr: zsh: bad substitution |
mksh | 27 ${!array_ref:-set} and ${!array_ref:=assign} [mksh stdout] Expected "==== check ====\n['', '', '']\n['', '', '']\n==== assign ====\n['', '', '']\n['', '', '']\n['', '', '']\n['', '', '']\n" Got "==== check ====\n['ref']\n['', '', '']\n==== assign ====\n" [mksh status] Expected 0, got 1 stdout: ==== check ==== ['ref'] ['', '', ''] ==== assign ====stderr: mksh: <stdin>[11]: ${!ref:=assign}: bad substitution |
ksh | 27 ${!array_ref:-set} and ${!array_ref:=assign} [ksh stdout] Expected "==== check ====\n['', '', '']\n['', '', '']\n==== assign ====\n['', '', '']\n['', '', '']\n['', '', '']\n['', '', '']\n" Got '==== check ====\n' [ksh status] Expected 0, got 1 stdout: ==== check ====stderr: E: ksh: <stdin>[6]: ${!ref:-set}: bad substitution |
toysh | 27 ${!array_ref:-set} and ${!array_ref:=assign} [toysh stdout] Expected "==== check ====\n['', '', '']\n['', '', '']\n==== assign ====\n['', '', '']\n['', '', '']\n['', '', '']\n['', '', '']\n" Got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 2: sh: syntax error: '' |
sush | 27 ${!array_ref:-set} and ${!array_ref:=assign} [sush stdout] Expected "==== check ====\n['', '', '']\n['', '', '']\n==== assign ====\n['', '', '']\n['', '', '']\n['', '', '']\n['', '', '']\n" Got "==== check ====\n[' ']\n['', '', '']\n==== assign ====\n[' ']\n[' ']\n['', '', '']\n['', '', '']\n" stdout: ==== check ==== [' '] ['', '', ''] ==== assign ==== [' '] [' '] ['', '', ''] ['', '', '']stderr: |
brush | 27 ${!array_ref:-set} and ${!array_ref:=assign} [brush stdout] Expected "==== check ====\n['', '', '']\n['', '', '']\n==== assign ====\n['', '', '']\n['', '', '']\n['', '', '']\n['', '', '']\n" Got "==== check ====\n['set']\n['set']\n==== assign ====\n['assign']\n['']\n['', '', '']\n" stdout: ==== check ==== ['set'] ['set'] ==== assign ==== ['assign'] [''] ['', '', '']stderr: [31mERROR[0m error: cannot assign in this way |
dash | 28 Array indirect expansion with suffix operators [dash stdout] Expected "==== v1 ====\n['lue']\n['al']\n['value']\n['set']\n['value']\nv1=value\n==== v2 ====\n['']\n['']\n['empty']\n['']\n['assign']\nv2=assign\n==== a1 ====\n['']\n['']\n['empty']\n['']\n['assign']\n['assign']\n==== a2[0] ====\n['ement']\n['le']\n['element']\n['set']\n['element']\n['element']\n==== a3[@] ====\n['3']\n['2', '3']\n['1', '2', '3']\n['set']\n['1', '2', '3']\n['1', '2', '3']\n" Got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 1: Syntax error: "(" unexpected |
ash | 28 Array indirect expansion with suffix operators [ash stdout] Expected "==== v1 ====\n['lue']\n['al']\n['value']\n['set']\n['value']\nv1=value\n==== v2 ====\n['']\n['']\n['empty']\n['']\n['assign']\nv2=assign\n==== a1 ====\n['']\n['']\n['empty']\n['']\n['assign']\n['assign']\n==== a2[0] ====\n['ement']\n['le']\n['element']\n['set']\n['element']\n['element']\n==== a3[@] ====\n['3']\n['2', '3']\n['1', '2', '3']\n['set']\n['1', '2', '3']\n['1', '2', '3']\n" Got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: unexpected "(" |
zsh | 28 Array indirect expansion with suffix operators [zsh stdout] Expected "==== v1 ====\n['lue']\n['al']\n['value']\n['set']\n['value']\nv1=value\n==== v2 ====\n['']\n['']\n['empty']\n['']\n['assign']\nv2=assign\n==== a1 ====\n['']\n['']\n['empty']\n['']\n['assign']\n['assign']\n==== a2[0] ====\n['ement']\n['le']\n['element']\n['set']\n['element']\n['element']\n==== a3[@] ====\n['3']\n['2', '3']\n['1', '2', '3']\n['set']\n['1', '2', '3']\n['1', '2', '3']\n" Got '==== v1 ====\n' [zsh status] Expected 0, got 1 stdout: ==== v1 ====stderr: zsh: no matches found: [dummy]=v1 test-suffixes:2: bad math expression: operand expected at `'dummy'' |
mksh | 28 Array indirect expansion with suffix operators [mksh stdout] Expected "==== v1 ====\n['lue']\n['al']\n['value']\n['set']\n['value']\nv1=value\n==== v2 ====\n['']\n['']\n['empty']\n['']\n['assign']\nv2=assign\n==== a1 ====\n['']\n['']\n['empty']\n['']\n['assign']\n['assign']\n==== a2[0] ====\n['ement']\n['le']\n['element']\n['set']\n['element']\n['element']\n==== a3[@] ====\n['3']\n['2', '3']\n['1', '2', '3']\n['set']\n['1', '2', '3']\n['1', '2', '3']\n" Got '' [mksh status] Expected 0, got 1 stdout: stderr: mksh: <stdin>[1]: syntax error: '(' unexpected |
ksh | 28 Array indirect expansion with suffix operators [ksh stdout] Expected "==== v1 ====\n['lue']\n['al']\n['value']\n['set']\n['value']\nv1=value\n==== v2 ====\n['']\n['']\n['empty']\n['']\n['assign']\nv2=assign\n==== a1 ====\n['']\n['']\n['empty']\n['']\n['assign']\n['assign']\n==== a2[0] ====\n['ement']\n['le']\n['element']\n['set']\n['element']\n['element']\n==== a3[@] ====\n['3']\n['2', '3']\n['1', '2', '3']\n['set']\n['1', '2', '3']\n['1', '2', '3']\n" Got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[1]: syntax error: unexpected '(' |
toysh | 28 Array indirect expansion with suffix operators [toysh stdout] Expected "==== v1 ====\n['lue']\n['al']\n['value']\n['set']\n['value']\nv1=value\n==== v2 ====\n['']\n['']\n['empty']\n['']\n['assign']\nv2=assign\n==== a1 ====\n['']\n['']\n['empty']\n['']\n['assign']\n['assign']\n==== a2[0] ====\n['ement']\n['le']\n['element']\n['set']\n['element']\n['element']\n==== a3[@] ====\n['3']\n['2', '3']\n['1', '2', '3']\n['set']\n['1', '2', '3']\n['1', '2', '3']\n" Got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ) |
sush | 28 Array indirect expansion with suffix operators [sush stdout] Expected "==== v1 ====\n['lue']\n['al']\n['value']\n['set']\n['value']\nv1=value\n==== v2 ====\n['']\n['']\n['empty']\n['']\n['assign']\nv2=assign\n==== a1 ====\n['']\n['']\n['empty']\n['']\n['assign']\n['assign']\n==== a2[0] ====\n['ement']\n['le']\n['element']\n['set']\n['element']\n['element']\n==== a3[@] ====\n['3']\n['2', '3']\n['1', '2', '3']\n['set']\n['1', '2', '3']\n['1', '2', '3']\n" Got "==== ====\nv1=value\nv2=\n[]\n['element']\n['1', '2', '3']\n" stdout: ==== ==== v1=value v2= [] ['element'] ['1', '2', '3']stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: 'dummy': syntax error: operand expected (error token is "'dummy'") /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: function: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: 'dummy': syntax error: operand expected (error token is "'dummy'") /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: `': invalid name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 6: `': invalid name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 7: `': invalid name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 8: `': invalid name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 9: `': invalid name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 11: Unexpected token: } /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 13: test-suffixes: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 17: test-suffixes: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 21: test-suffixes: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 25: test-suffixes: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 29: test-suffixes: command not found |
brush | 28 Array indirect expansion with suffix operators [brush stdout] Expected "==== v1 ====\n['lue']\n['al']\n['value']\n['set']\n['value']\nv1=value\n==== v2 ====\n['']\n['']\n['empty']\n['']\n['assign']\nv2=assign\n==== a1 ====\n['']\n['']\n['empty']\n['']\n['assign']\n['assign']\n==== a2[0] ====\n['ement']\n['le']\n['element']\n['set']\n['element']\n['element']\n==== a3[@] ====\n['3']\n['2', '3']\n['1', '2', '3']\n['set']\n['1', '2', '3']\n['1', '2', '3']\n" Got "==== v1 ====\n['${!ref[@]:2}']\n['${!ref[@]:1:2}']\n['value']\n['set']\n['value']\nv1=value\n==== v2 ====\n['${!ref[@]:2}']\n['${!ref[@]:1:2}']\n['empty']\n['']\nv2=\n==== a1 ====\n['${!ref[@]:2}']\n['${!ref[@]:1:2}']\n['empty']\n['']\n[]\n==== a2[0] ====\n['${!ref[@]:2}']\n['${!ref[@]:1:2}']\n['element']\n['set']\n['element']\n['element']\n==== a3[@] ====\n['${!ref[@]:2}']\n['${!ref[@]:1:2}']\n['1', '2', '3']\n['set']\n['1', '2', '3']\n['1', '2', '3']\n" stdout: ==== v1 ==== ['${!ref[@]:2}'] ['${!ref[@]:1:2}'] ['value'] ['set'] ['value'] v1=value ==== v2 ==== ['${!ref[@]:2}'] ['${!ref[@]:1:2}'] ['empty'] [''] v2= ==== a1 ==== ['${!ref[@]:2}'] ['${!ref[@]:1:2}'] ['empty'] [''] [] ==== a2[0] ==== ['${!ref[@]:2}'] ['${!ref[@]:1:2}'] ['element'] ['set'] ['element'] ['element'] ==== a3[@] ==== ['${!ref[@]:2}'] ['${!ref[@]:1:2}'] ['1', '2', '3'] ['set'] ['1', '2', '3'] ['1', '2', '3']stderr: [31mERROR[0m error: cannot assign in this way [31mERROR[0m error: cannot assign in this way |
dash | 29 Array indirect expansion with replacements [dash stdout] Expected "==== v1 ====\n['alue']\n['valu']\n['vlu']\n['vxlux']\n==== v2 ====\n['']\n['']\n['']\n['']\n==== a1 ====\n['']\n['']\n['']\n['']\n==== a2[0] ====\n['lement']\n['elemen']\n['lmnt']\n['xlxmxnt']\n==== a3[@] ====\n['', '', '']\n['', '', '']\n['1', '2', '3']\n['1', '2', '3']\n" Got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 1: Syntax error: "(" unexpected |
ash | 29 Array indirect expansion with replacements [ash stdout] Expected "==== v1 ====\n['alue']\n['valu']\n['vlu']\n['vxlux']\n==== v2 ====\n['']\n['']\n['']\n['']\n==== a1 ====\n['']\n['']\n['']\n['']\n==== a2[0] ====\n['lement']\n['elemen']\n['lmnt']\n['xlxmxnt']\n==== a3[@] ====\n['', '', '']\n['', '', '']\n['1', '2', '3']\n['1', '2', '3']\n" Got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: unexpected "(" |
zsh | 29 Array indirect expansion with replacements [zsh stdout] Expected "==== v1 ====\n['alue']\n['valu']\n['vlu']\n['vxlux']\n==== v2 ====\n['']\n['']\n['']\n['']\n==== a1 ====\n['']\n['']\n['']\n['']\n==== a2[0] ====\n['lement']\n['elemen']\n['lmnt']\n['xlxmxnt']\n==== a3[@] ====\n['', '', '']\n['', '', '']\n['1', '2', '3']\n['1', '2', '3']\n" Got '==== v1 ====\n' [zsh status] Expected 0, got 1 stdout: ==== v1 ====stderr: zsh: no matches found: [dummy]=v1 test-rep:2: bad math expression: operand expected at `'dummy'' |
mksh | 29 Array indirect expansion with replacements [mksh stdout] Expected "==== v1 ====\n['alue']\n['valu']\n['vlu']\n['vxlux']\n==== v2 ====\n['']\n['']\n['']\n['']\n==== a1 ====\n['']\n['']\n['']\n['']\n==== a2[0] ====\n['lement']\n['elemen']\n['lmnt']\n['xlxmxnt']\n==== a3[@] ====\n['', '', '']\n['', '', '']\n['1', '2', '3']\n['1', '2', '3']\n" Got '' [mksh status] Expected 0, got 1 stdout: stderr: mksh: <stdin>[1]: syntax error: '(' unexpected |
ksh | 29 Array indirect expansion with replacements [ksh stdout] Expected "==== v1 ====\n['alue']\n['valu']\n['vlu']\n['vxlux']\n==== v2 ====\n['']\n['']\n['']\n['']\n==== a1 ====\n['']\n['']\n['']\n['']\n==== a2[0] ====\n['lement']\n['elemen']\n['lmnt']\n['xlxmxnt']\n==== a3[@] ====\n['', '', '']\n['', '', '']\n['1', '2', '3']\n['1', '2', '3']\n" Got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[1]: syntax error: unexpected '(' |
toysh | 29 Array indirect expansion with replacements [toysh stdout] Expected "==== v1 ====\n['alue']\n['valu']\n['vlu']\n['vxlux']\n==== v2 ====\n['']\n['']\n['']\n['']\n==== a1 ====\n['']\n['']\n['']\n['']\n==== a2[0] ====\n['lement']\n['elemen']\n['lmnt']\n['xlxmxnt']\n==== a3[@] ====\n['', '', '']\n['', '', '']\n['1', '2', '3']\n['1', '2', '3']\n" Got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ) |
sush | 29 Array indirect expansion with replacements [sush stdout] Expected "==== v1 ====\n['alue']\n['valu']\n['vlu']\n['vxlux']\n==== v2 ====\n['']\n['']\n['']\n['']\n==== a1 ====\n['']\n['']\n['']\n['']\n==== a2[0] ====\n['lement']\n['elemen']\n['lmnt']\n['xlxmxnt']\n==== a3[@] ====\n['', '', '']\n['', '', '']\n['1', '2', '3']\n['1', '2', '3']\n" Got '==== ====\n' [sush status] Expected 0, got 127 stdout: ==== ====stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: 'dummy': syntax error: operand expected (error token is "'dummy'") /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: function: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: 'dummy': syntax error: operand expected (error token is "'dummy'") /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: `': invalid name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 6: `': invalid name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 7: `': invalid name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 8: `': invalid name /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 12: test-rep: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 15: test-rep: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 18: test-rep: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 21: test-rep: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 24: test-rep: command not found |
brush | 29 Array indirect expansion with replacements [brush stdout] Expected "==== v1 ====\n['alue']\n['valu']\n['vlu']\n['vxlux']\n==== v2 ====\n['']\n['']\n['']\n['']\n==== a1 ====\n['']\n['']\n['']\n['']\n==== a2[0] ====\n['lement']\n['elemen']\n['lmnt']\n['xlxmxnt']\n==== a3[@] ====\n['', '', '']\n['', '', '']\n['1', '2', '3']\n['1', '2', '3']\n" Got "==== v1 ====\n['alue']\n['valu']\n['${!ref[@]//[a-f]}']\n['${!ref[@]//[a-f]/x}']\n==== v2 ====\n['']\n['']\n['${!ref[@]//[a-f]}']\n['${!ref[@]//[a-f]/x}']\n==== a1 ====\n['']\n['']\n['${!ref[@]//[a-f]}']\n['${!ref[@]//[a-f]/x}']\n==== a2[0] ====\n['lement']\n['elemen']\n['${!ref[@]//[a-f]}']\n['${!ref[@]//[a-f]/x}']\n==== a3[@] ====\n['', '', '']\n['', '', '']\n['${!ref[@]//[a-f]}']\n['${!ref[@]//[a-f]/x}']\n" stdout: ==== v1 ==== ['alue'] ['valu'] ['${!ref[@]//[a-f]}'] ['${!ref[@]//[a-f]/x}'] ==== v2 ==== [''] [''] ['${!ref[@]//[a-f]}'] ['${!ref[@]//[a-f]/x}'] ==== a1 ==== [''] [''] ['${!ref[@]//[a-f]}'] ['${!ref[@]//[a-f]/x}'] ==== a2[0] ==== ['lement'] ['elemen'] ['${!ref[@]//[a-f]}'] ['${!ref[@]//[a-f]/x}'] ==== a3[@] ==== ['', '', ''] ['', '', ''] ['${!ref[@]//[a-f]}'] ['${!ref[@]//[a-f]/x}']stderr: |
bash | 30 Array indirect expansion with @? conversion stdout: ==== v1 ==== ["'value'"] ['value'] [''] ==== v2 ==== ["''"] [''] [''] ==== a1 ==== [''] [''] ['a'] ==== a2[0] ==== ["'element'"] ['element'] ['a'] ==== a3[@] ==== ["'1'", "'2'", "'3'"] ['1', '2', '3'] ['a', 'a', 'a']stderr: |
dash | 30 Array indirect expansion with @? conversion [dash stdout] Expected '==== v1 ====\n[\'value\']\n[\'value\']\n[\'\']\n==== v2 ====\n["\'\'"]\n[\'\']\n[\'\']\n==== a1 ====\n[\'\']\n[\'\']\n[\'a\']\n==== a2[0] ====\n[\'element\']\n[\'element\']\n[\'a\']\n==== a3[@] ====\n[\'1\', \'2\', \'3\']\n[\'1\', \'2\', \'3\']\n[\'a\', \'a\', \'a\']\n' Got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 1: Syntax error: "(" unexpected |
ash | 30 Array indirect expansion with @? conversion [ash stdout] Expected '==== v1 ====\n[\'value\']\n[\'value\']\n[\'\']\n==== v2 ====\n["\'\'"]\n[\'\']\n[\'\']\n==== a1 ====\n[\'\']\n[\'\']\n[\'a\']\n==== a2[0] ====\n[\'element\']\n[\'element\']\n[\'a\']\n==== a3[@] ====\n[\'1\', \'2\', \'3\']\n[\'1\', \'2\', \'3\']\n[\'a\', \'a\', \'a\']\n' Got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: unexpected "(" |
zsh | 30 Array indirect expansion with @? conversion [zsh stdout] Expected '==== v1 ====\n[\'value\']\n[\'value\']\n[\'\']\n==== v2 ====\n["\'\'"]\n[\'\']\n[\'\']\n==== a1 ====\n[\'\']\n[\'\']\n[\'a\']\n==== a2[0] ====\n[\'element\']\n[\'element\']\n[\'a\']\n==== a3[@] ====\n[\'1\', \'2\', \'3\']\n[\'1\', \'2\', \'3\']\n[\'a\', \'a\', \'a\']\n' Got '==== v1 ====\n' [zsh status] Expected 0, got 1 stdout: ==== v1 ====stderr: zsh: no matches found: [dummy]=v1 test-op0:2: bad math expression: operand expected at `'dummy'' |
mksh | 30 Array indirect expansion with @? conversion [mksh stdout] Expected '==== v1 ====\n[\'value\']\n[\'value\']\n[\'\']\n==== v2 ====\n["\'\'"]\n[\'\']\n[\'\']\n==== a1 ====\n[\'\']\n[\'\']\n[\'a\']\n==== a2[0] ====\n[\'element\']\n[\'element\']\n[\'a\']\n==== a3[@] ====\n[\'1\', \'2\', \'3\']\n[\'1\', \'2\', \'3\']\n[\'a\', \'a\', \'a\']\n' Got '' [mksh status] Expected 0, got 1 stdout: stderr: mksh: <stdin>[1]: syntax error: '(' unexpected |
ksh | 30 Array indirect expansion with @? conversion [ksh stdout] Expected '==== v1 ====\n[\'value\']\n[\'value\']\n[\'\']\n==== v2 ====\n["\'\'"]\n[\'\']\n[\'\']\n==== a1 ====\n[\'\']\n[\'\']\n[\'a\']\n==== a2[0] ====\n[\'element\']\n[\'element\']\n[\'a\']\n==== a3[@] ====\n[\'1\', \'2\', \'3\']\n[\'1\', \'2\', \'3\']\n[\'a\', \'a\', \'a\']\n' Got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[1]: syntax error: unexpected '(' |
toysh | 30 Array indirect expansion with @? conversion [toysh stdout] Expected '==== v1 ====\n[\'value\']\n[\'value\']\n[\'\']\n==== v2 ====\n["\'\'"]\n[\'\']\n[\'\']\n==== a1 ====\n[\'\']\n[\'\']\n[\'a\']\n==== a2[0] ====\n[\'element\']\n[\'element\']\n[\'a\']\n==== a3[@] ====\n[\'1\', \'2\', \'3\']\n[\'1\', \'2\', \'3\']\n[\'a\', \'a\', \'a\']\n' Got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ) |
sush | 30 Array indirect expansion with @? conversion [sush stdout] Expected '==== v1 ====\n[\'value\']\n[\'value\']\n[\'\']\n==== v2 ====\n["\'\'"]\n[\'\']\n[\'\']\n==== a1 ====\n[\'\']\n[\'\']\n[\'a\']\n==== a2[0] ====\n[\'element\']\n[\'element\']\n[\'a\']\n==== a3[@] ====\n[\'1\', \'2\', \'3\']\n[\'1\', \'2\', \'3\']\n[\'a\', \'a\', \'a\']\n' Got '==== ====\n' [sush status] Expected 0, got 127 stdout: ==== ====stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: 'dummy': syntax error: operand expected (error token is "'dummy'") /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: function: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: 'dummy': syntax error: operand expected (error token is "'dummy'") /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: `${!ref[@]@Q}': bad substitution /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 6: `${!ref[@]@P}': bad substitution /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 7: `${!ref[@]@a}': bad substitution /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 9: Unexpected token: } /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 11: test-op0: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 14: test-op0: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 17: test-op0: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 20: test-op0: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 23: test-op0: command not found |
brush | 30 Array indirect expansion with @? conversion [brush stdout] Expected '==== v1 ====\n[\'value\']\n[\'value\']\n[\'\']\n==== v2 ====\n["\'\'"]\n[\'\']\n[\'\']\n==== a1 ====\n[\'\']\n[\'\']\n[\'a\']\n==== a2[0] ====\n[\'element\']\n[\'element\']\n[\'a\']\n==== a3[@] ====\n[\'1\', \'2\', \'3\']\n[\'1\', \'2\', \'3\']\n[\'a\', \'a\', \'a\']\n' Got "==== v1 ====\n['${!ref[@]@Q}']\n['${!ref[@]@P}']\n['${!ref[@]@a}']\n==== v2 ====\n['${!ref[@]@Q}']\n['${!ref[@]@P}']\n['${!ref[@]@a}']\n==== a1 ====\n['${!ref[@]@Q}']\n['${!ref[@]@P}']\n['${!ref[@]@a}']\n==== a2[0] ====\n['${!ref[@]@Q}']\n['${!ref[@]@P}']\n['${!ref[@]@a}']\n==== a3[@] ====\n['${!ref[@]@Q}']\n['${!ref[@]@P}']\n['${!ref[@]@a}']\n" stdout: ==== v1 ==== ['${!ref[@]@Q}'] ['${!ref[@]@P}'] ['${!ref[@]@a}'] ==== v2 ==== ['${!ref[@]@Q}'] ['${!ref[@]@P}'] ['${!ref[@]@a}'] ==== a1 ==== ['${!ref[@]@Q}'] ['${!ref[@]@P}'] ['${!ref[@]@a}'] ==== a2[0] ==== ['${!ref[@]@Q}'] ['${!ref[@]@P}'] ['${!ref[@]@a}'] ==== a3[@] ==== ['${!ref[@]@Q}'] ['${!ref[@]@P}'] ['${!ref[@]@a}']stderr: |