Results for var-op-bash.test.sh

statusbashdashashzshmkshkshtoyshsushbrushosh
pass 22223431082018
ok 3000000002
BUG 2000000000
FAIL 02525242324171977
total27272727272727272727
casebashdashashzshmkshkshtoyshsushbrushoshdescription
0pass FAIL FAIL FAIL FAIL FAIL pass pass pass pass Lower Case with , and ,,
detailsdetailsdetailsdetailsdetails
1pass FAIL FAIL FAIL FAIL FAIL pass pass pass pass Upper Case with ^ and ^^
detailsdetailsdetailsdetailsdetails
2pass FAIL FAIL FAIL FAIL FAIL pass FAIL FAIL FAIL Case folding - Unicode characters
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
3BUG FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL Case folding - multi code point
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
4ok FAIL FAIL FAIL FAIL FAIL pass pass pass ok Case folding that depends on locale (not enabled, requires Turkish locale)
detailsdetailsdetailsdetailsdetailsdetailsdetails
5pass FAIL FAIL FAIL FAIL FAIL pass pass pass FAIL Lower Case with constant string (VERY WEIRD)
detailsdetailsdetailsdetailsdetailsdetails
6pass FAIL FAIL FAIL FAIL FAIL pass pass pass FAIL Lower Case glob
detailsdetailsdetailsdetailsdetailsdetails
7pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass FAIL ${x@u} U L - upper / lower case (bash 5.1 feature)
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
8pass FAIL FAIL FAIL pass pass FAIL FAIL pass pass ${x@Q}
detailsdetailsdetailsdetailsdetails
9pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass ok ${array@Q} and ${array[@]@Q}
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
10pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass ${!prefix@} ${!prefix*} yields sorted array of var names
detailsdetailsdetailsdetailsdetailsdetailsdetails
11pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass ${!prefix@} matches var name (regression)
detailsdetailsdetailsdetailsdetailsdetailsdetails
12pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass ${var@a} for attributes
detailsdetailsdetailsdetailsdetailsdetailsdetails
13pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass ${var@a} error conditions
detailsdetailsdetailsdetailsdetailsdetailsdetails
14pass FAIL FAIL FAIL pass FAIL pass FAIL pass pass undef and @P @Q @a
detailsdetailsdetailsdetailsdetails
15pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass FAIL argv array and @P @Q @a
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
16pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass assoc array and @P @Q @a
detailsdetailsdetailsdetailsdetailsdetailsdetails
17pass pass pass pass pass pass pass pass pass pass ${!var[@]@X}
18pass pass pass pass pass pass pass pass FAIL pass ${#var@X} is a parse error
details
19BUG FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass ${!A@a} and ${!A[@]@a}
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
20pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass FAIL undef vs. empty string in var ops
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
21pass FAIL FAIL pass FAIL FAIL pass pass FAIL pass -o nounset with var ops
detailsdetailsdetailsdetailsdetails
22pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass ${a[0]@a} and ${a@a}
detailsdetailsdetailsdetailsdetailsdetailsdetails
23pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass ${!r@a} with r='a[0]' (attribute for indirect expansion of an array element)
detailsdetailsdetailsdetailsdetailsdetailsdetails
24ok FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass Array expansion with nullary var op @Q
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
25ok FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass Array expansion with nullary var op @P
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
26pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass Array expansion with nullary var op @a
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
92 passed, 5 OK, 0 not implemented, 2 BUG, 171 failed, 0 timeouts, 0 cases skipped
7 failed under osh

Details on runs that didn't PASS

dash0 Lower Case with , and ,,

[dash stdout] Expected 'aBC DEF\nabc def\nempty=\nempty=\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 2: Bad substitution
ash0 Lower Case with , and ,,

[ash stdout] Expected 'aBC DEF\nabc def\nempty=\nempty=\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: bad substitution
zsh0 Lower Case with , and ,,

[zsh stdout] Expected 'aBC DEF\nabc def\nempty=\nempty=\n', got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: bad substitution
mksh0 Lower Case with , and ,,

[mksh stdout] Expected 'aBC DEF\nabc def\nempty=\nempty=\n', got ''
[mksh status] Expected 0, got 1

stdout:
stderr: 
mksh: <stdin>[2]: ${x,}: bad substitution
ksh0 Lower Case with , and ,,

[ksh stdout] Expected 'aBC DEF\nabc def\nempty=\nempty=\n', got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[2]: ${x,}: bad substitution
dash1 Upper Case with ^ and ^^

[dash stdout] Expected 'Abc def\nABC DEF\nempty=\nempty=\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 2: Bad substitution
ash1 Upper Case with ^ and ^^

[ash stdout] Expected 'Abc def\nABC DEF\nempty=\nempty=\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: bad substitution
zsh1 Upper Case with ^ and ^^

[zsh stdout] Expected 'Abc def\nABC DEF\nempty=\nempty=\n', got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: bad substitution
mksh1 Upper Case with ^ and ^^

[mksh stdout] Expected 'Abc def\nABC DEF\nempty=\nempty=\n', got ''
[mksh status] Expected 0, got 1

stdout:
stderr: 
mksh: <stdin>[2]: ${x^}: bad substitution
ksh1 Upper Case with ^ and ^^

[ksh stdout] Expected 'Abc def\nABC DEF\nempty=\nempty=\n', got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[2]: ${x^}: bad substitution
dash2 Case folding - Unicode characters

[dash stdout] Expected 'u \xc3\x80\xc3\x88\nU \xc3\x80\xc3\x88\nl \xc3\xa0\xc3\x88\nL \xc3\xa0\xc3\xa8\nu \xc3\x81\xc3\xa9\nU \xc3\x81\xc3\x89\nl \xc3\xa1\xc3\xa9\nL \xc3\xa1\xc3\xa9\n' Got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 4: Bad substitution
ash2 Case folding - Unicode characters

[ash stdout] Expected 'u \xc3\x80\xc3\x88\nU \xc3\x80\xc3\x88\nl \xc3\xa0\xc3\x88\nL \xc3\xa0\xc3\xa8\nu \xc3\x81\xc3\xa9\nU \xc3\x81\xc3\x89\nl \xc3\xa1\xc3\xa9\nL \xc3\xa1\xc3\xa9\n' Got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: bad substitution
zsh2 Case folding - Unicode characters

[zsh stdout] Expected 'u \xc3\x80\xc3\x88\nU \xc3\x80\xc3\x88\nl \xc3\xa0\xc3\x88\nL \xc3\xa0\xc3\xa8\nu \xc3\x81\xc3\xa9\nU \xc3\x81\xc3\x89\nl \xc3\xa1\xc3\xa9\nL \xc3\xa1\xc3\xa9\n' Got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: bad substitution
mksh2 Case folding - Unicode characters

[mksh stdout] Expected 'u \xc3\x80\xc3\x88\nU \xc3\x80\xc3\x88\nl \xc3\xa0\xc3\x88\nL \xc3\xa0\xc3\xa8\nu \xc3\x81\xc3\xa9\nU \xc3\x81\xc3\x89\nl \xc3\xa1\xc3\xa9\nL \xc3\xa1\xc3\xa9\n' Got ''
[mksh status] Expected 0, got 1

stdout:
stderr: 
mksh: <stdin>[4]: ${x^}: bad substitution
ksh2 Case folding - Unicode characters

[ksh stdout] Expected 'u \xc3\x80\xc3\x88\nU \xc3\x80\xc3\x88\nl \xc3\xa0\xc3\x88\nL \xc3\xa0\xc3\xa8\nu \xc3\x81\xc3\xa9\nU \xc3\x81\xc3\x89\nl \xc3\xa1\xc3\xa9\nL \xc3\xa1\xc3\xa9\n' Got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[4]: ${x^}: bad substitution
sush2 Case folding - Unicode characters

[sush stdout] Expected 'u \xc3\x80\xc3\x88\nU \xc3\x80\xc3\x88\nl \xc3\xa0\xc3\x88\nL \xc3\xa0\xc3\xa8\nu \xc3\x81\xc3\xa9\nU \xc3\x81\xc3\x89\nl \xc3\xa1\xc3\xa9\nL \xc3\xa1\xc3\xa9\n' Got 'u \xc3\x80\xc3\x88\nU \xc3\x80\xc3\x88\nl \xc3\x80\xc3\x88\nL \xc3\x80\xc3\x88\nu \xc3\xa1\xc3\xa9\nU \xc3\xa1\xc3\xa9\nl \xc3\xa1\xc3\xa9\nL \xc3\xa1\xc3\xa9\n'

stdout:
u ÀÈ
U ÀÈ
l ÀÈ
L ÀÈ
u áé
U áé
l áé
L áé
stderr:
brush2 Case folding - Unicode characters

[brush stdout] Expected 'u \xc3\x80\xc3\x88\nU \xc3\x80\xc3\x88\nl \xc3\xa0\xc3\x88\nL \xc3\xa0\xc3\xa8\nu \xc3\x81\xc3\xa9\nU \xc3\x81\xc3\x89\nl \xc3\xa1\xc3\xa9\nL \xc3\xa1\xc3\xa9\n' Got ''
[brush status] Expected 0, got -6

stdout:
stderr: 
Well, this is embarrassing.

brush had a problem and crashed. To help us diagnose the problem you can send us a crash report.

We have generated a report file at "/tmp/report-4ccd27c2-8f7a-400a-ad57-c604e5e7a735.toml". Submit an issue or email with the subject of "brush Crash Report" and include the report as an attachment.


To submit the crash report:

please post a GitHub issue at https://github.com/reubeno/brush/issues/new

We take privacy seriously, and do not perform any automated error collection. In order to improve the software, we rely on people to submit reports.

Thank you kindly!
osh2 Case folding - Unicode characters

[osh stdout] Expected 'u \xc3\x80\xc3\x88\nU \xc3\x80\xc3\x88\nl \xc3\xa0\xc3\x88\nL \xc3\xa0\xc3\xa8\nu \xc3\x81\xc3\xa9\nU \xc3\x81\xc3\x89\nl \xc3\xa1\xc3\xa9\nL \xc3\xa1\xc3\xa9\n' Got 'u \xc3\x80\xc3\x88\nU \xc3\x80\xc3\x88\nl \xc3\x80\xc3\x88\nL \xc3\x80\xc3\x88\nu \xc3\xa1\xc3\xa9\nU \xc3\xa1\xc3\xa9\nl \xc3\xa1\xc3\xa9\nL \xc3\xa1\xc3\xa9\n'

stdout:
u ÀÈ
U ÀÈ
l ÀÈ
L ÀÈ
u áé
U áé
l áé
L áé
stderr:
bash3 Case folding - multi code point

stdout:
shell
u ß
U ß
l ß
L ß

python2
ß
ß

stderr:
dash3 Case folding - multi code point

[dash stdout] Expected '', got 'shell\n'
[dash status] Expected 0, got 2

stdout:
shell
stderr:
dash: 3: Bad substitution
ash3 Case folding - multi code point

[ash stdout] Expected '', got 'shell\n'
[ash status] Expected 0, got 2

stdout:
shell
stderr:
ash: syntax error: bad substitution
zsh3 Case folding - multi code point

[zsh stdout] Expected '', got 'shell\n'
[zsh status] Expected 0, got 1

stdout:
shell
stderr:
zsh: bad substitution
mksh3 Case folding - multi code point

[mksh stdout] Expected '', got 'shell\n'
[mksh status] Expected 0, got 1

stdout:
shell
stderr:
mksh: <stdin>[3]: ${small^}: bad substitution
ksh3 Case folding - multi code point

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

stdout:
shell
stderr:
E: ksh: <stdin>[3]: ${small^}: bad substitution
toysh3 Case folding - multi code point

[toysh stdout] Expected '', got 'shell\nu \xc3\x9f\nU \xc3\x9f\nl \xc3\x9f\nL \xc3\x9f\n\npython2\n\xc3\x9f\n\xc3\x9f\n\n'

stdout:
shell
u ß
U ß
l ß
L ß

python2
ß
ß

stderr:
sush3 Case folding - multi code point

[sush stdout] Expected '', got 'shell\nu \xc3\x9f\nU \xc3\x9f\nl \xc3\x9f\nL \xc3\x9f\n\npython2\n\xc3\x9f\n\xc3\x9f\n\n'

stdout:
shell
u ß
U ß
l ß
L ß

python2
ß
ß

stderr:
brush3 Case folding - multi code point

[brush stdout] Expected '', got 'shell\n'
[brush status] Expected 0, got -6

stdout:
shell
stderr:
Well, this is embarrassing.

brush had a problem and crashed. To help us diagnose the problem you can send us a crash report.

We have generated a report file at "/tmp/report-bc53cdff-f34e-4ee6-a4fa-469b41380660.toml". Submit an issue or email with the subject of "brush Crash Report" and include the report as an attachment.


To submit the crash report:

please post a GitHub issue at https://github.com/reubeno/brush/issues/new

We take privacy seriously, and do not perform any automated error collection. In order to improve the software, we rely on people to submit reports.

Thank you kindly!
osh3 Case folding - multi code point

[osh stdout] Expected '', got 'shell\nu \xc3\x9f\nU \xc3\x9f\nl \xc3\x9f\nL \xc3\x9f\n\npython2\n\xc3\x9f\n\xc3\x9f\n\n'

stdout:
shell
u ß
U ß
l ß
L ß

python2
ß
ß

stderr:
bash4 Case folding that depends on locale (not enabled, requires Turkish locale)

stdout:
u I
U I
l i
L i
stderr:
dash4 Case folding that depends on locale (not enabled, requires Turkish locale)

[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 3: Bad substitution
ash4 Case folding that depends on locale (not enabled, requires Turkish locale)

[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: bad substitution
zsh4 Case folding that depends on locale (not enabled, requires Turkish locale)

[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: bad substitution
mksh4 Case folding that depends on locale (not enabled, requires Turkish locale)

[mksh status] Expected 0, got 1

stdout:
stderr: 
mksh: <stdin>[3]: ${x^}: bad substitution
ksh4 Case folding that depends on locale (not enabled, requires Turkish locale)

[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[3]: ${x^}: bad substitution
osh4 Case folding that depends on locale (not enabled, requires Turkish locale)

stdout:
u I
U I
l i
L i
stderr:
dash5 Lower Case with constant string (VERY WEIRD)

[dash stdout] Expected 'aAA ABC DEF\naaa aBC DEF\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 2: Bad substitution
ash5 Lower Case with constant string (VERY WEIRD)

[ash stdout] Expected 'aAA ABC DEF\naaa aBC DEF\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: bad substitution
zsh5 Lower Case with constant string (VERY WEIRD)

[zsh stdout] Expected 'aAA ABC DEF\naaa aBC DEF\n', got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: bad substitution
mksh5 Lower Case with constant string (VERY WEIRD)

[mksh stdout] Expected 'aAA ABC DEF\naaa aBC DEF\n', got ''
[mksh status] Expected 0, got 1

stdout:
stderr: 
mksh: <stdin>[2]: ${x,A}: bad substitution
ksh5 Lower Case with constant string (VERY WEIRD)

[ksh stdout] Expected 'aAA ABC DEF\naaa aBC DEF\n', got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[2]: ${x,A}: bad substitution
osh5 Lower Case with constant string (VERY WEIRD)

[osh stdout] Expected 'aAA ABC DEF\naaa aBC DEF\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
  echo ${x,A}
          ^
[ stdin ]:2: fatal: Id.VOp1_Comma can't have an argument
dash6 Lower Case glob

[dash stdout] Expected 'ABC DEF\nABC DEF\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 4: Bad substitution
ash6 Lower Case glob

[ash stdout] Expected 'ABC DEF\nABC DEF\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: bad substitution
zsh6 Lower Case glob

[zsh stdout] Expected 'ABC DEF\nABC DEF\n', got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: bad substitution
mksh6 Lower Case glob

[mksh stdout] Expected 'ABC DEF\nABC DEF\n', got ''
[mksh status] Expected 0, got 1

stdout:
stderr: 
mksh: <stdin>[4]: ${x,[d-f]}: bad substitution
ksh6 Lower Case glob

[ksh stdout] Expected 'ABC DEF\nABC DEF\n', got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[4]: ${x,[d-f]}: bad substitution
osh6 Lower Case glob

[osh stdout] Expected 'ABC DEF\nABC DEF\n', got ''
[osh status] Expected 0, got -6

stdout:
stderr: 
osh: _gen/bin/oils_for_unix.mycpp.cc:42820: BigStr* string_ops::DoUnarySuffixOp(BigStr*, syntax_asdl::Token*, BigStr*, bool): Assertion `false' failed.
dash7 ${x@u} U L - upper / lower case (bash 5.1 feature)

[dash stdout] Expected 'Abc DEF\nABC DEF\nabc def\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 3: Bad substitution
ash7 ${x@u} U L - upper / lower case (bash 5.1 feature)

[ash stdout] Expected 'Abc DEF\nABC DEF\nabc def\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: bad substitution
zsh7 ${x@u} U L - upper / lower case (bash 5.1 feature)

[zsh stdout] Expected 'Abc DEF\nABC DEF\nabc def\n', got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: bad substitution
mksh7 ${x@u} U L - upper / lower case (bash 5.1 feature)

[mksh stdout] Expected 'Abc DEF\nABC DEF\nabc def\n', got 'abc DEF\nabc DEF\nabc DEF\n'

stdout:
abc DEF
abc DEF
abc DEF
stderr:
ksh7 ${x@u} U L - upper / lower case (bash 5.1 feature)

[ksh stdout] Expected 'Abc DEF\nABC DEF\nabc def\n', got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[3]: ${x@u}: bad substitution
toysh7 ${x@u} U L - upper / lower case (bash 5.1 feature)

[toysh stdout] Expected 'Abc DEF\nABC DEF\nabc def\n', got ''
[toysh status] Expected 0, got 1

stdout:
stderr: 
main: line 3: sh: x: @u}"
main: line 5: sh: x: @U}"
main: line 7: sh: x: @L}"
sush7 ${x@u} U L - upper / lower case (bash 5.1 feature)

[sush stdout] Expected 'Abc DEF\nABC DEF\nabc def\n', got ''
[sush status] Expected 0, got 1

stdout:
stderr: 
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: `${x@u}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: `${x@U}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 7: `${x@L}': bad substitution
osh7 ${x@u} U L - upper / lower case (bash 5.1 feature)

[osh stdout] Expected 'Abc DEF\nABC DEF\nabc def\n', got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
  echo "${x@u}"
           ^
[ stdin ]:3: Unexpected token in ${} (VOp3)
dash8 ${x@Q}

[dash stdout] Expected 'OK\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 2: Bad substitution
ash8 ${x@Q}

[ash stdout] Expected 'OK\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: bad substitution
zsh8 ${x@Q}

[zsh stdout] Expected 'OK\n', got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: bad substitution
toysh8 ${x@Q}

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

stdout:
stderr: 
main: line 2: sh: x: @Q}"
sush8 ${x@Q}

[sush stdout] Expected 'OK\n', got ''
[sush status] Expected 0, got 1

stdout:
stderr: 
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: `${x@Q}': bad substitution
dash9 ${array@Q} and ${array[@]@Q}

[dash stdout] Expected "'x' 'y\\nz'\n'x'\n'x'\n", got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash9 ${array@Q} and ${array[@]@Q}

[ash stdout] Expected "'x' 'y\\nz'\n'x'\n'x'\n", got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh9 ${array@Q} and ${array[@]@Q}

[zsh stdout] Expected "'x' 'y\\nz'\n'x'\n'x'\n", got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: bad substitution
mksh9 ${array@Q} and ${array[@]@Q}

[mksh stdout] Expected "'x' 'y\\nz'\n'x'\n'x'\n", got ''
[mksh status] Expected 0, got 1

stdout:
stderr: 
mksh: <stdin>[2]: ${array[@]@Q}: bad substitution
ksh9 ${array@Q} and ${array[@]@Q}

[ksh stdout] Expected "'x' 'y\\nz'\n'x'\n'x'\n", got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[2]: ${array[@]@Q}: bad substitution
toysh9 ${array@Q} and ${array[@]@Q}

[toysh stdout] Expected "'x' 'y\\nz'\n'x'\n'x'\n", got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: x
sush9 ${array@Q} and ${array[@]@Q}

[sush stdout] Expected "'x' 'y\\nz'\n'x'\n'x'\n", got ''
[sush status] Expected 0, got 1

stdout:
stderr: 
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: `${array[@]@Q}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: `${array@Q}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: `${array@Q}': bad substitution
osh9 ${array@Q} and ${array[@]@Q}

stdout:
x $'y\\nz'
x
x
stderr:
dash10 ${!prefix@} ${!prefix*} yields sorted array of var names

[dash stdout] Expected "['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z ZIP ZOO ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z ZIP ZOO ZOOM']\n['Z ZIP ZOO ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n" Got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 8: Bad substitution
ash10 ${!prefix@} ${!prefix*} yields sorted array of var names

[ash stdout] Expected "['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z ZIP ZOO ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z ZIP ZOO ZOOM']\n['Z ZIP ZOO ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n" Got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: bad substitution
zsh10 ${!prefix@} ${!prefix*} yields sorted array of var names

[zsh stdout] Expected "['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z ZIP ZOO ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z ZIP ZOO ZOOM']\n['Z ZIP ZOO ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n" Got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: bad substitution
mksh10 ${!prefix@} ${!prefix*} yields sorted array of var names

[mksh stdout] Expected "['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z ZIP ZOO ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z ZIP ZOO ZOOM']\n['Z ZIP ZOO ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n" Got ''
[mksh status] Expected 0, got 1

stdout:
stderr: 
mksh: <stdin>[8]: ${!Z*}: bad substitution
ksh10 ${!prefix@} ${!prefix*} yields sorted array of var names

[ksh stdout] Expected "['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z ZIP ZOO ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z ZIP ZOO ZOOM']\n['Z ZIP ZOO ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n" Got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[8]: ${!Z*}: bad substitution
toysh10 ${!prefix@} ${!prefix*} yields sorted array of var names

[toysh stdout] Expected "['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z ZIP ZOO ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z ZIP ZOO ZOOM']\n['Z ZIP ZOO ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n" Got "['Z', 'ZOOM', 'ZIP', 'ZOO']\n['Z', 'ZOOM', 'ZIP', 'ZOO']\n['Z', 'ZOOM', 'ZIP', 'ZOO']\n['Z', 'ZOOM', 'ZIP', 'ZOO']\n['Z', 'ZOOM', 'ZIP', 'ZOO']\n['Z', 'ZOOM', 'ZIP', 'ZOO']\n['Z', 'ZOOM', 'ZIP', 'ZOO']\n['Z', 'ZOOM', 'ZIP', 'ZOO']\n['Z', 'ZOOM', 'ZIP', 'ZOO']\n['Z', 'ZOOM', 'ZIP', 'ZOO']\n['Z', 'ZOOM', 'ZIP', 'ZOO']\n['Z', 'ZOOM', 'ZIP', 'ZOO']\n"

stdout:
['Z', 'ZOOM', 'ZIP', 'ZOO']
['Z', 'ZOOM', 'ZIP', 'ZOO']
['Z', 'ZOOM', 'ZIP', 'ZOO']
['Z', 'ZOOM', 'ZIP', 'ZOO']
['Z', 'ZOOM', 'ZIP', 'ZOO']
['Z', 'ZOOM', 'ZIP', 'ZOO']
['Z', 'ZOOM', 'ZIP', 'ZOO']
['Z', 'ZOOM', 'ZIP', 'ZOO']
['Z', 'ZOOM', 'ZIP', 'ZOO']
['Z', 'ZOOM', 'ZIP', 'ZOO']
['Z', 'ZOOM', 'ZIP', 'ZOO']
['Z', 'ZOOM', 'ZIP', 'ZOO']
stderr:
sush10 ${!prefix@} ${!prefix*} yields sorted array of var names

[sush stdout] Expected "['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z ZIP ZOO ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z ZIP ZOO ZOOM']\n['Z ZIP ZOO ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n['Z', 'ZIP', 'ZOO', 'ZOOM']\n" Got ''
[sush status] Expected 0, got 1

stdout:
stderr: 
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 8: `${!Z*}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 9: `${!Z@}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 10: `${!Z*}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 11: `${!Z@}': bad substitution
dash11 ${!prefix@} matches var name (regression)

[dash stdout] Expected 'hello1 hello2 hello3\nhello hello1 hello2 hello3\n' Got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 2: Bad substitution
ash11 ${!prefix@} matches var name (regression)

[ash stdout] Expected 'hello1 hello2 hello3\nhello hello1 hello2 hello3\n' Got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: bad substitution
zsh11 ${!prefix@} matches var name (regression)

[zsh stdout] Expected 'hello1 hello2 hello3\nhello hello1 hello2 hello3\n' Got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: bad substitution
mksh11 ${!prefix@} matches var name (regression)

[mksh stdout] Expected 'hello1 hello2 hello3\nhello hello1 hello2 hello3\n' Got 'hello\nhello\n'

stdout:
hello
hello
stderr:
ksh11 ${!prefix@} matches var name (regression)

[ksh stdout] Expected 'hello1 hello2 hello3\nhello hello1 hello2 hello3\n' Got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[2]: ${!hello@}: bad substitution
toysh11 ${!prefix@} matches var name (regression)

[toysh stdout] Expected 'hello1 hello2 hello3\nhello hello1 hello2 hello3\n' Got 'hello3 hello2 hello1\n'
[toysh status] Expected 0, got 2

stdout:
hello3 hello2 hello1
stderr:
main: line 3: sh: syntax error: echo
sush11 ${!prefix@} matches var name (regression)

[sush stdout] Expected 'hello1 hello2 hello3\nhello hello1 hello2 hello3\n' Got ''
[sush status] Expected 0, got 1

stdout:
stderr: 
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: `${!hello@}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: `${!hello@}': bad substitution
dash12 ${var@a} for attributes

[dash stdout] Expected 'a\nar\nrx\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash12 ${var@a} for attributes

[ash stdout] Expected 'a\nar\nrx\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh12 ${var@a} for attributes

[zsh stdout] Expected 'a\nar\nrx\n', got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: bad substitution
mksh12 ${var@a} for attributes

[mksh stdout] Expected 'a\nar\nrx\n', got 'one\n'
[mksh status] Expected 0, got 1

stdout:
one
stderr:
mksh: <stdin>[3]: syntax error: '(' unexpected
ksh12 ${var@a} for attributes

[ksh stdout] Expected 'a\nar\nrx\n', got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[2]: ${array@a}: bad substitution
toysh12 ${var@a} for attributes

[toysh stdout] Expected 'a\nar\nrx\n', got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: one
sush12 ${var@a} for attributes

[sush stdout] Expected 'a\nar\nrx\n', got ''
[sush status] Expected 0, got 1

stdout:
stderr: 
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: `${array@a}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: `${array@a}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 6: `${PYTHONPATH@a}': bad substitution
dash13 ${var@a} error conditions

[dash stdout] Expected '[]\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: Bad substitution
ash13 ${var@a} error conditions

[ash stdout] Expected '[]\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: bad substitution
zsh13 ${var@a} error conditions

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

stdout:
stderr: 
zsh: bad substitution
mksh13 ${var@a} error conditions

[mksh stdout] Expected '[]\n', got '[0]\n'

stdout:
[0]
stderr:
ksh13 ${var@a} error conditions

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

stdout:
stderr: 
E: ksh: <stdin>[1]: ${?@a}: bad substitution
toysh13 ${var@a} error conditions

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

stdout:
stderr: 
main: line 1: sh: ?: @a}]
sush13 ${var@a} error conditions

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

stdout:
stderr: 
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: `${?@a}': bad substitution
dash14 undef and @P @Q @a

[dash stdout] Expected '\nstatus=0\n\nstatus=0\n\nstatus=0\n', got 'status=2\nstatus=2\nstatus=2\n'

stdout:
status=2
status=2
status=2
stderr:
dash: 1: Bad substitution
dash: 1: Bad substitution
dash: 1: Bad substitution
ash14 undef and @P @Q @a

[ash stdout] Expected '\nstatus=0\n\nstatus=0\n\nstatus=0\n', got 'status=2\nstatus=2\nstatus=2\n'

stdout:
status=2
status=2
status=2
stderr:
ash: syntax error: bad substitution
ash: syntax error: bad substitution
ash: syntax error: bad substitution
zsh14 undef and @P @Q @a

[zsh stdout] Expected '\nstatus=0\n\nstatus=0\n\nstatus=0\n', got 'status=1\nstatus=1\nstatus=1\n'

stdout:
status=1
status=1
status=1
stderr:
zsh:1: bad substitution
zsh:1: bad substitution
zsh:1: bad substitution
ksh14 undef and @P @Q @a

[ksh stdout] Expected '\nstatus=0\n\nstatus=0\n\nstatus=0\n', got "status=1\n''\nstatus=0\nstatus=1\n"

stdout:
status=1
''
status=0
status=1
stderr:
E: ksh: ${undef@P}: bad substitution
E: ksh: ${undef@a}: bad substitution
sush14 undef and @P @Q @a

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

stdout:
status=1
status=1
status=1
stderr:
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: `${undef@P}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: `${undef@Q}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: `${undef@a}': bad substitution
dash15 argv array and @P @Q @a

[dash stdout] Expected "a b c\nstatus=0\n'a' 'b\\nc'\nstatus=0\n\nstatus=0\n" Got 'status=2\nstatus=2\nstatus=2\n'

stdout:
status=2
status=2
status=2
stderr:
dummy: 1: dummy: Bad substitution
dummy: 1: dummy: Bad substitution
dummy: 1: dummy: Bad substitution
ash15 argv array and @P @Q @a

[ash stdout] Expected "a b c\nstatus=0\n'a' 'b\\nc'\nstatus=0\n\nstatus=0\n" Got 'status=2\nstatus=2\nstatus=2\n'

stdout:
status=2
status=2
status=2
stderr:
dummy: line 0: syntax error: bad substitution
dummy: line 0: syntax error: bad substitution
dummy: line 0: syntax error: bad substitution
zsh15 argv array and @P @Q @a

[zsh stdout] Expected "a b c\nstatus=0\n'a' 'b\\nc'\nstatus=0\n\nstatus=0\n" Got 'status=1\nstatus=1\nstatus=1\n'

stdout:
status=1
status=1
status=1
stderr:
zsh:1: bad substitution
zsh:1: bad substitution
zsh:1: bad substitution
mksh15 argv array and @P @Q @a

[mksh stdout] Expected "a b c\nstatus=0\n'a' 'b\\nc'\nstatus=0\n\nstatus=0\n" Got 'a b c\nstatus=0\nstatus=1\na b c\nstatus=0\n'

stdout:
a b c
status=0
status=1
a b c
status=0
stderr:
dummy: ${@@Q}: bad substitution
ksh15 argv array and @P @Q @a

[ksh stdout] Expected "a b c\nstatus=0\n'a' 'b\\nc'\nstatus=0\n\nstatus=0\n" Got 'status=1\nstatus=1\nstatus=1\n'

stdout:
status=1
status=1
status=1
stderr:
E: dummy: ${@@P}: bad substitution
E: dummy: ${@@Q}: bad substitution
E: dummy: ${@@a}: bad substitution
toysh15 argv array and @P @Q @a

[toysh stdout] Expected "a b c\nstatus=0\n'a' 'b\\nc'\nstatus=0\n\nstatus=0\n" Got 'status=1\nstatus=1\nstatus=1\n'

stdout:
status=1
status=1
status=1
stderr:
-c: line 1: sh: @: @P}
-c: line 1: sh: @: @Q}
-c: line 1: sh: @: @a}
sush15 argv array and @P @Q @a

[sush stdout] Expected "a b c\nstatus=0\n'a' 'b\\nc'\nstatus=0\n\nstatus=0\n" Got 'status=1\nstatus=1\nstatus=1\n'

stdout:
status=1
status=1
status=1
stderr:
dummy: line 1: `${@@P}': bad substitution
dummy: line 1: `${@@Q}': bad substitution
dummy: line 1: `${@@a}': bad substitution
osh15 argv array and @P @Q @a

[osh stdout] Expected "a b c\nstatus=0\n'a' 'b\\nc'\nstatus=0\n\nstatus=0\n" Got "a b c\nstatus=0\na $'b\\\\nc'\nstatus=0\na a a\nstatus=0\n"

stdout:
a b c
status=0
a $'b\\nc'
status=0
a a a
status=0
stderr:
dash16 assoc array and @P @Q @a

[dash stdout] Expected "- y\nstatus=0\n- 'y'\nstatus=0\nA - A\nstatus=0\n" Got 'status=2\nstatus=0\nstatus=2\n'

stdout:
status=2
status=0
status=2
stderr:
dash: 1: Syntax error: "(" unexpected
dash: 1: Syntax error: "(" unexpected
dash: 1: Syntax error: "(" unexpected
ash16 assoc array and @P @Q @a

[ash stdout] Expected "- y\nstatus=0\n- 'y'\nstatus=0\nA - A\nstatus=0\n" Got 'status=2\nstatus=0\nstatus=2\n'

stdout:
status=2
status=0
status=2
stderr:
ash: syntax error: unexpected "("
ash: syntax error: unexpected "("
ash: syntax error: unexpected "("
zsh16 assoc array and @P @Q @a

[zsh stdout] Expected "- y\nstatus=0\n- 'y'\nstatus=0\nA - A\nstatus=0\n" Got 'status=1\nstatus=0\nstatus=1\n'

stdout:
status=1
status=0
status=1
stderr:
zsh:1: no matches found: [x]=y
zsh:1: bad substitution
zsh:1: no matches found: [x]=y
zsh:1: bad substitution
zsh:1: no matches found: [x]=y
zsh:1: bad substitution
mksh16 assoc array and @P @Q @a

[mksh stdout] Expected "- y\nstatus=0\n- 'y'\nstatus=0\nA - A\nstatus=0\n" Got 'status=1\nstatus=0\nstatus=1\n'

stdout:
status=1
status=0
status=1
stderr:
mksh: syntax error: '(' unexpected
mksh: syntax error: '(' unexpected
mksh: syntax error: '(' unexpected
ksh16 assoc array and @P @Q @a

[ksh stdout] Expected "- y\nstatus=0\n- 'y'\nstatus=0\nA - A\nstatus=0\n" Got 'status=1\nstatus=0\nstatus=1\n'

stdout:
status=1
status=0
status=1
stderr:
E: ksh: syntax error: unexpected '('
E: ksh: syntax error: unexpected '('
E: ksh: syntax error: unexpected '('
toysh16 assoc array and @P @Q @a

[toysh stdout] Expected "- y\nstatus=0\n- 'y'\nstatus=0\nA - A\nstatus=0\n" Got 'status=2\nstatus=0\nstatus=2\n'

stdout:
status=2
status=0
status=2
stderr:
-c: line 1: sh: syntax error: )
-c: line 1: sh: syntax error: )
-c: line 1: sh: syntax error: )
sush16 assoc array and @P @Q @a

[sush stdout] Expected "- y\nstatus=0\n- 'y'\nstatus=0\nA - A\nstatus=0\n" Got 'status=1\nstatus=0\nstatus=1\n'

stdout:
status=1
status=0
status=1
stderr:
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: `${A@P}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: `${A@Q}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: `${A@a}': bad substitution
brush18 ${#var@X} is a parse error

[brush stdout] Expected 'fail\nfail\nfail\n', got '${#A[@]@P}\n${#A[@]@Q}\n${#A[@]@a}\n'

stdout:
${#A[@]@P}
${#A[@]@Q}
${#A[@]@a}
stderr:
bash19 ${!A@a} and ${!A[@]@a}

stdout:
x=
invalid=
stderr:
dash19 ${!A@a} and ${!A[@]@a}

[dash stdout] Expected 'x=\n', got ''
[dash status] Expected 1, got 2

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash19 ${!A@a} and ${!A[@]@a}

[ash stdout] Expected 'x=\n', got ''
[ash status] Expected 1, got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh19 ${!A@a} and ${!A[@]@a}

[zsh stdout] Expected 'x=\n', got ''

stdout:
stderr: 
zsh: no matches found: [x]=y
zsh: bad substitution
mksh19 ${!A@a} and ${!A[@]@a}

[mksh stdout] Expected 'x=\n', got ''

stdout:
stderr: 
mksh: <stdin>[1]: syntax error: '(' unexpected
ksh19 ${!A@a} and ${!A[@]@a}

[ksh stdout] Expected 'x=\n', got ''

stdout:
stderr: 
E: ksh: <stdin>[1]: syntax error: unexpected '('
toysh19 ${!A@a} and ${!A[@]@a}

[toysh stdout] Expected 'x=\n', got ''
[toysh status] Expected 1, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: )
sush19 ${!A@a} and ${!A[@]@a}

[sush stdout] Expected 'x=\n', got ''

stdout:
stderr: 
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: `${!A[@]@a}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: `${!A@a}': bad substitution
brush19 ${!A@a} and ${!A[@]@a}

[brush stdout] Expected 'x=\n', got 'x=${!A[@]@a}\n'
[brush status] Expected 1, got 0

stdout:
x=${!A[@]@a}
stderr:
ERROR error: failed to parse parameter ''
dash20 undef vs. empty string in var ops

[dash stdout] Expected "'x' '' 'x'\n'x' '' 'x'\n'x' '' 'x'\nx='x' empty='' x='x'\nr r\n" Got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 4: Bad substitution
ash20 undef vs. empty string in var ops

[ash stdout] Expected "'x' '' 'x'\n'x' '' 'x'\n'x' '' 'x'\nx='x' empty='' x='x'\nr r\n" Got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: bad substitution
zsh20 undef vs. empty string in var ops

[zsh stdout] Expected "'x' '' 'x'\n'x' '' 'x'\n'x' '' 'x'\nx='x' empty='' x='x'\nr r\n" Got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: bad substitution
mksh20 undef vs. empty string in var ops

[mksh stdout] Expected "'x' '' 'x'\n'x' '' 'x'\n'x' '' 'x'\nx='x' empty='' x='x'\nr r\n" Got 'x x\nx x\nx x\nx x\nx x\n'

stdout:
x x
x x
x x
x x
x x
stderr:
mksh: <stdin>[12]: declare: not found
ksh20 undef vs. empty string in var ops

[ksh stdout] Expected "'x' '' 'x'\n'x' '' 'x'\n'x' '' 'x'\nx='x' empty='' x='x'\nr r\n" Got "x '' '' x\n"
[ksh status] Expected 0, got 1

stdout:
x '' '' x
stderr:
E: ksh: <stdin>[6]: ${x@K}: bad substitution
toysh20 undef vs. empty string in var ops

[toysh stdout] Expected "'x' '' 'x'\n'x' '' 'x'\n'x' '' 'x'\nx='x' empty='' x='x'\nr r\n" Got ''
[toysh status] Expected 0, got 1

stdout:
stderr: 
main: line 4: sh: x: @Q}
main: line 6: sh: x: @K}
main: line 8: sh: x: @k}
main: line 10: sh: x: @A}
main: line 13: sh: x: @a}
sush20 undef vs. empty string in var ops

[sush stdout] Expected "'x' '' 'x'\n'x' '' 'x'\n'x' '' 'x'\nx='x' empty='' x='x'\nr r\n" Got ''
[sush status] Expected 0, got 1

stdout:
stderr: 
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: `${x@Q}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 6: `${x@K}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 8: `${x@k}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 10: `${x@A}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 13: `${x@a}': bad substitution
osh20 undef vs. empty string in var ops

[osh stdout] Expected "'x' '' 'x'\n'x' '' 'x'\n'x' '' 'x'\nx='x' empty='' x='x'\nr r\n" Got "x '' x\n"
[osh status] Expected 0, got 2

stdout:
x '' x
stderr:
  echo ${x@K} ${empty@K} ${undef@K} ${x@K}
          ^
[ stdin ]:6: Unexpected token in ${} (VOp3)
dash21 -o nounset with var ops

[dash stdout] Expected 'stat: 1\nstat: 1\nstat: 1\n', got 'stat: 2\nstat: 2\nstat: 2\n'

stdout:
stat: 2
stat: 2
stat: 2
stderr:
dash: 2: Bad substitution
dash: 3: Bad substitution
dash: 4: Bad substitution
ash21 -o nounset with var ops

[ash stdout] Expected 'stat: 1\nstat: 1\nstat: 1\n', got 'stat: 2\nstat: 2\nstat: 2\n'

stdout:
stat: 2
stat: 2
stat: 2
stderr:
ash: syntax error: bad substitution
ash: syntax error: bad substitution
ash: syntax error: bad substitution
mksh21 -o nounset with var ops

[mksh stdout] Expected 'stat: 1\nstat: 1\nstat: 1\n', got '\nstat: 0\nstat: 1\nstat: 1\n'

stdout:
stat: 0
stat: 1
stat: 1
stderr:
mksh: <stdin>[3]: undef: parameter not set
mksh: <stdin>[4]: undef: parameter not set
ksh21 -o nounset with var ops

[ksh stdout] Expected 'stat: 1\nstat: 1\nstat: 1\n', got "''\nstat: 0\nstat: 1\nstat: 1\n"

stdout:
''
stat: 0
stat: 1
stat: 1
stderr:
E: ksh: <stdin>[3]: ${undef@P}: bad substitution
E: ksh: <stdin>[4]: ${undef@a}: bad substitution
brush21 -o nounset with var ops

[brush stdout] Expected 'stat: 1\nstat: 1\nstat: 1\n', got '\nstat: 0\n\nstat: 0\n\nstat: 0\n'

stdout:
stat: 0

stat: 0

stat: 0
stderr:
dash22 ${a[0]@a} and ${a@a}

[dash stdout] Expected "attr = 'a'\nattr = 'a'\n", got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash22 ${a[0]@a} and ${a@a}

[ash stdout] Expected "attr = 'a'\nattr = 'a'\n", got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh22 ${a[0]@a} and ${a@a}

[zsh stdout] Expected "attr = 'a'\nattr = 'a'\n", got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: bad substitution
mksh22 ${a[0]@a} and ${a@a}

[mksh stdout] Expected "attr = 'a'\nattr = 'a'\n", got "attr = '1'\nattr = '1'\n"

stdout:
attr = '1'
attr = '1'
stderr:
ksh22 ${a[0]@a} and ${a@a}

[ksh stdout] Expected "attr = 'a'\nattr = 'a'\n", got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[2]: ${a[0]@a}: bad substitution
toysh22 ${a[0]@a} and ${a@a}

[toysh stdout] Expected "attr = 'a'\nattr = 'a'\n", got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: 1
sush22 ${a[0]@a} and ${a@a}

[sush stdout] Expected "attr = 'a'\nattr = 'a'\n", got ''
[sush status] Expected 0, got 1

stdout:
stderr: 
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: `${a[0]@a}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: `${a@a}': bad substitution
dash23 ${!r@a} with r='a[0]' (attribute for indirect expansion of an array element)

[dash stdout] Expected 'a\na\nA\nA\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash23 ${!r@a} with r='a[0]' (attribute for indirect expansion of an array element)

[ash stdout] Expected 'a\na\nA\nA\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh23 ${!r@a} with r='a[0]' (attribute for indirect expansion of an array element)

[zsh stdout] Expected 'a\na\nA\nA\n', got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: bad substitution
mksh23 ${!r@a} with r='a[0]' (attribute for indirect expansion of an array element)

[mksh stdout] Expected 'a\na\nA\nA\n', got 'r\nr\n'
[mksh status] Expected 0, got 1

stdout:
r
r
stderr:
mksh: <stdin>[7]: syntax error: '(' unexpected
ksh23 ${!r@a} with r='a[0]' (attribute for indirect expansion of an array element)

[ksh stdout] Expected 'a\na\nA\nA\n', got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[3]: ${!r@a}: bad substitution
toysh23 ${!r@a} with r='a[0]' (attribute for indirect expansion of an array element)

[toysh stdout] Expected 'a\na\nA\nA\n', got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: 1
sush23 ${!r@a} with r='a[0]' (attribute for indirect expansion of an array element)

[sush stdout] Expected 'a\na\nA\nA\n', got ''
[sush status] Expected 0, got 1

stdout:
stderr: 
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: `${!r@a}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: `${!r@a}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 9: `${!r@a}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 11: `${!r@a}': bad substitution
bash24 Array expansion with nullary var op @Q

stdout:
["'1'", "'2'", "'3'", "'4'", "'5'", "'6'", "'7'", "'8'", "'9'"]
["'1' '2' '3' '4' '5' '6' '7' '8' '9'"]
["'ysh'", "'osh'", "'world'", "'hello'"]
["'ysh' 'osh' 'world' 'hello'"]
[]
['']
stderr:
dash24 Array expansion with nullary var op @Q

[dash stdout] Expected "['1', '2', '3', '4', '5', '6', '7', '8', '9']\n['1 2 3 4 5 6 7 8 9']\n['hello', 'world', 'osh', 'ysh']\n['hello world osh ysh']\n[]\n['']\n" Got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash24 Array expansion with nullary var op @Q

[ash stdout] Expected "['1', '2', '3', '4', '5', '6', '7', '8', '9']\n['1 2 3 4 5 6 7 8 9']\n['hello', 'world', 'osh', 'ysh']\n['hello world osh ysh']\n[]\n['']\n" Got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh24 Array expansion with nullary var op @Q

[zsh stdout] Expected "['1', '2', '3', '4', '5', '6', '7', '8', '9']\n['1 2 3 4 5 6 7 8 9']\n['hello', 'world', 'osh', 'ysh']\n['hello world osh ysh']\n[]\n['']\n" Got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: no matches found: [a]=hello
zsh: bad substitution
mksh24 Array expansion with nullary var op @Q

[mksh stdout] Expected "['1', '2', '3', '4', '5', '6', '7', '8', '9']\n['1 2 3 4 5 6 7 8 9']\n['hello', 'world', 'osh', 'ysh']\n['hello world osh ysh']\n[]\n['']\n" Got ''
[mksh status] Expected 0, got 1

stdout:
stderr: 
mksh: <stdin>[1]: syntax error: '(' unexpected
ksh24 Array expansion with nullary var op @Q

[ksh stdout] Expected "['1', '2', '3', '4', '5', '6', '7', '8', '9']\n['1 2 3 4 5 6 7 8 9']\n['hello', 'world', 'osh', 'ysh']\n['hello world osh ysh']\n[]\n['']\n" Got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[1]: syntax error: unexpected '('
toysh24 Array expansion with nullary var op @Q

[toysh stdout] Expected "['1', '2', '3', '4', '5', '6', '7', '8', '9']\n['1 2 3 4 5 6 7 8 9']\n['hello', 'world', 'osh', 'ysh']\n['hello world osh ysh']\n[]\n['']\n" Got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: )
sush24 Array expansion with nullary var op @Q

[sush stdout] Expected "['1', '2', '3', '4', '5', '6', '7', '8', '9']\n['1 2 3 4 5 6 7 8 9']\n['hello', 'world', 'osh', 'ysh']\n['hello world osh ysh']\n[]\n['']\n" Got ''
[sush status] Expected 0, got 1

stdout:
stderr: 
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: 'a': syntax error: operand expected (error token is "'a'")
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: 'b': syntax error: operand expected (error token is "'b'")
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: 'c': syntax error: operand expected (error token is "'c'")
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: 'd': syntax error: operand expected (error token is "'d'")
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: `${a[@]@Q}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: `${a[*]@Q}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 6: `${A[@]@Q}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 7: `${A[*]@Q}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 8: `${u[@]@Q}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 9: `${u[*]@Q}': bad substitution
brush24 Array expansion with nullary var op @Q

[brush stdout] Expected "['1', '2', '3', '4', '5', '6', '7', '8', '9']\n['1 2 3 4 5 6 7 8 9']\n['hello', 'world', 'osh', 'ysh']\n['hello world osh ysh']\n[]\n['']\n" Got '["\'1\'", "\'2\'", "\'3\'", "\'4\'", "\'5\'", "\'6\'", "\'7\'", "\'8\'", "\'9\'"]\n["\'1\' \'2\' \'3\' \'4\' \'5\' \'6\' \'7\' \'8\' \'9\'"]\n["\'hello\'", "\'world\'", "\'osh\'", "\'ysh\'"]\n["\'hello\' \'world\' \'osh\' \'ysh\'"]\n[]\n[\'\']\n'

stdout:
["'1'", "'2'", "'3'", "'4'", "'5'", "'6'", "'7'", "'8'", "'9'"]
["'1' '2' '3' '4' '5' '6' '7' '8' '9'"]
["'hello'", "'world'", "'osh'", "'ysh'"]
["'hello' 'world' 'osh' 'ysh'"]
[]
['']
stderr:
bash25 Array expansion with nullary var op @P

stdout:
['1', '2', '3', '4', '5', '6', '7', '8', '9']
['1 2 3 4 5 6 7 8 9']
['ysh', 'osh', 'world', 'hello']
['ysh osh world hello']
[]
['']
stderr:
dash25 Array expansion with nullary var op @P

[dash stdout] Expected "['1', '2', '3', '4', '5', '6', '7', '8', '9']\n['1 2 3 4 5 6 7 8 9']\n['hello', 'world', 'osh', 'ysh']\n['hello world osh ysh']\n[]\n['']\n" Got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash25 Array expansion with nullary var op @P

[ash stdout] Expected "['1', '2', '3', '4', '5', '6', '7', '8', '9']\n['1 2 3 4 5 6 7 8 9']\n['hello', 'world', 'osh', 'ysh']\n['hello world osh ysh']\n[]\n['']\n" Got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh25 Array expansion with nullary var op @P

[zsh stdout] Expected "['1', '2', '3', '4', '5', '6', '7', '8', '9']\n['1 2 3 4 5 6 7 8 9']\n['hello', 'world', 'osh', 'ysh']\n['hello world osh ysh']\n[]\n['']\n" Got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: no matches found: [a]=hello
zsh: bad substitution
mksh25 Array expansion with nullary var op @P

[mksh stdout] Expected "['1', '2', '3', '4', '5', '6', '7', '8', '9']\n['1 2 3 4 5 6 7 8 9']\n['hello', 'world', 'osh', 'ysh']\n['hello world osh ysh']\n[]\n['']\n" Got ''
[mksh status] Expected 0, got 1

stdout:
stderr: 
mksh: <stdin>[1]: syntax error: '(' unexpected
ksh25 Array expansion with nullary var op @P

[ksh stdout] Expected "['1', '2', '3', '4', '5', '6', '7', '8', '9']\n['1 2 3 4 5 6 7 8 9']\n['hello', 'world', 'osh', 'ysh']\n['hello world osh ysh']\n[]\n['']\n" Got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[1]: syntax error: unexpected '('
toysh25 Array expansion with nullary var op @P

[toysh stdout] Expected "['1', '2', '3', '4', '5', '6', '7', '8', '9']\n['1 2 3 4 5 6 7 8 9']\n['hello', 'world', 'osh', 'ysh']\n['hello world osh ysh']\n[]\n['']\n" Got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: )
sush25 Array expansion with nullary var op @P

[sush stdout] Expected "['1', '2', '3', '4', '5', '6', '7', '8', '9']\n['1 2 3 4 5 6 7 8 9']\n['hello', 'world', 'osh', 'ysh']\n['hello world osh ysh']\n[]\n['']\n" Got ''
[sush status] Expected 0, got 1

stdout:
stderr: 
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: 'a': syntax error: operand expected (error token is "'a'")
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: 'b': syntax error: operand expected (error token is "'b'")
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: 'c': syntax error: operand expected (error token is "'c'")
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: 'd': syntax error: operand expected (error token is "'d'")
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: `${a[@]@P}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: `${a[*]@P}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 6: `${A[@]@P}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 7: `${A[*]@P}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 8: `${u[@]@P}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 9: `${u[*]@P}': bad substitution
dash26 Array expansion with nullary var op @a

[dash stdout] Expected "['a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a']\n['a a a a a a a a a']\n['A', 'A', 'A', 'A']\n['A A A A']\n[]\n['']\n" Got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash26 Array expansion with nullary var op @a

[ash stdout] Expected "['a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a']\n['a a a a a a a a a']\n['A', 'A', 'A', 'A']\n['A A A A']\n[]\n['']\n" Got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh26 Array expansion with nullary var op @a

[zsh stdout] Expected "['a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a']\n['a a a a a a a a a']\n['A', 'A', 'A', 'A']\n['A A A A']\n[]\n['']\n" Got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: no matches found: [a]=hello
zsh: bad substitution
mksh26 Array expansion with nullary var op @a

[mksh stdout] Expected "['a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a']\n['a a a a a a a a a']\n['A', 'A', 'A', 'A']\n['A A A A']\n[]\n['']\n" Got ''
[mksh status] Expected 0, got 1

stdout:
stderr: 
mksh: <stdin>[1]: syntax error: '(' unexpected
ksh26 Array expansion with nullary var op @a

[ksh stdout] Expected "['a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a']\n['a a a a a a a a a']\n['A', 'A', 'A', 'A']\n['A A A A']\n[]\n['']\n" Got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[1]: syntax error: unexpected '('
toysh26 Array expansion with nullary var op @a

[toysh stdout] Expected "['a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a']\n['a a a a a a a a a']\n['A', 'A', 'A', 'A']\n['A A A A']\n[]\n['']\n" Got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: )
sush26 Array expansion with nullary var op @a

[sush stdout] Expected "['a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a']\n['a a a a a a a a a']\n['A', 'A', 'A', 'A']\n['A A A A']\n[]\n['']\n" Got ''
[sush status] Expected 0, got 1

stdout:
stderr: 
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: 'a': syntax error: operand expected (error token is "'a'")
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: 'b': syntax error: operand expected (error token is "'b'")
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: 'c': syntax error: operand expected (error token is "'c'")
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: 'd': syntax error: operand expected (error token is "'d'")
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: `${a[@]@a}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: `${a[*]@a}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 6: `${A[@]@a}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 7: `${A[*]@a}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 8: `${u[@]@a}': bad substitution
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 9: `${u[*]@a}': bad substitution
brush26 Array expansion with nullary var op @a

[brush stdout] Expected "['a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a']\n['a a a a a a a a a']\n['A', 'A', 'A', 'A']\n['A A A A']\n[]\n['']\n" Got "['a']\n['a']\n['A']\n['A']\n['']\n['']\n"

stdout:
['a']
['a']
['A']
['A']
['']
['']
stderr: