92 passed, 5 OK, 0 not implemented, 2 BUG, 171 failed, 0 timeouts, 0 cases skipped 7 failed under osh
dash | 0 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 |
ash | 0 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 |
zsh | 0 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 |
mksh | 0 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 |
ksh | 0 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 |
dash | 1 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 |
ash | 1 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 |
zsh | 1 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 |
mksh | 1 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 |
ksh | 1 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 |
dash | 2 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 |
ash | 2 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 |
zsh | 2 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 |
mksh | 2 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 |
ksh | 2 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 |
sush | 2 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: |
brush | 2 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! |
osh | 2 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: |
bash | 3 Case folding - multi code point stdout: shell u ß U ß l ß L ß python2 ß ßstderr: |
dash | 3 Case folding - multi code point [dash stdout] Expected '', got 'shell\n' [dash status] Expected 0, got 2 stdout: shellstderr: dash: 3: Bad substitution |
ash | 3 Case folding - multi code point [ash stdout] Expected '', got 'shell\n' [ash status] Expected 0, got 2 stdout: shellstderr: ash: syntax error: bad substitution |
zsh | 3 Case folding - multi code point [zsh stdout] Expected '', got 'shell\n' [zsh status] Expected 0, got 1 stdout: shellstderr: zsh: bad substitution |
mksh | 3 Case folding - multi code point [mksh stdout] Expected '', got 'shell\n' [mksh status] Expected 0, got 1 stdout: shellstderr: mksh: <stdin>[3]: ${small^}: bad substitution |
ksh | 3 Case folding - multi code point [ksh stdout] Expected '', got 'shell\n' [ksh status] Expected 0, got 1 stdout: shellstderr: E: ksh: <stdin>[3]: ${small^}: bad substitution |
toysh | 3 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: |
sush | 3 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: |
brush | 3 Case folding - multi code point [brush stdout] Expected '', got 'shell\n' [brush status] Expected 0, got -6 stdout: shellstderr: 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! |
osh | 3 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: |
bash | 4 Case folding that depends on locale (not enabled, requires Turkish locale) stdout: u I U I l i L istderr: |
dash | 4 Case folding that depends on locale (not enabled, requires Turkish locale) [dash status] Expected 0, got 2 stdout: stderr: dash: 3: Bad substitution |
ash | 4 Case folding that depends on locale (not enabled, requires Turkish locale) [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: bad substitution |
zsh | 4 Case folding that depends on locale (not enabled, requires Turkish locale) [zsh status] Expected 0, got 1 stdout: stderr: zsh: bad substitution |
mksh | 4 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 |
ksh | 4 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 |
osh | 4 Case folding that depends on locale (not enabled, requires Turkish locale) stdout: u I U I l i L istderr: |
dash | 5 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 |
ash | 5 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 |
zsh | 5 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 |
mksh | 5 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 |
ksh | 5 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 |
osh | 5 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 |
dash | 6 Lower Case glob [dash stdout] Expected 'ABC DEF\nABC DEF\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 4: Bad substitution |
ash | 6 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 |
zsh | 6 Lower Case glob [zsh stdout] Expected 'ABC DEF\nABC DEF\n', got '' [zsh status] Expected 0, got 1 stdout: stderr: zsh: bad substitution |
mksh | 6 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 |
ksh | 6 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 |
osh | 6 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. |
dash | 7 ${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 |
ash | 7 ${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 |
zsh | 7 ${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 |
mksh | 7 ${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 DEFstderr: |
ksh | 7 ${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 |
toysh | 7 ${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}" |
sush | 7 ${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 |
osh | 7 ${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) |
dash | 8 ${x@Q} [dash stdout] Expected 'OK\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 2: Bad substitution |
ash | 8 ${x@Q} [ash stdout] Expected 'OK\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: bad substitution |
zsh | 8 ${x@Q} [zsh stdout] Expected 'OK\n', got '' [zsh status] Expected 0, got 1 stdout: stderr: zsh: bad substitution |
toysh | 8 ${x@Q} [toysh stdout] Expected 'OK\n', got '' [toysh status] Expected 0, got 1 stdout: stderr: main: line 2: sh: x: @Q}" |
sush | 8 ${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 |
dash | 9 ${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 |
ash | 9 ${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 "(" |
zsh | 9 ${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 |
mksh | 9 ${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 |
ksh | 9 ${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 |
toysh | 9 ${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 |
sush | 9 ${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 |
osh | 9 ${array@Q} and ${array[@]@Q} stdout: x $'y\\nz' x xstderr: |
dash | 10 ${!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 |
ash | 10 ${!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 |
zsh | 10 ${!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 |
mksh | 10 ${!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 |
ksh | 10 ${!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 |
toysh | 10 ${!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: |
sush | 10 ${!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 |
dash | 11 ${!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 |
ash | 11 ${!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 |
zsh | 11 ${!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 |
mksh | 11 ${!prefix@} matches var name (regression) [mksh stdout] Expected 'hello1 hello2 hello3\nhello hello1 hello2 hello3\n' Got 'hello\nhello\n' stdout: hello hellostderr: |
ksh | 11 ${!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 |
toysh | 11 ${!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 hello1stderr: main: line 3: sh: syntax error: echo |
sush | 11 ${!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 |
dash | 12 ${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 |
ash | 12 ${var@a} for attributes [ash stdout] Expected 'a\nar\nrx\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: unexpected "(" |
zsh | 12 ${var@a} for attributes [zsh stdout] Expected 'a\nar\nrx\n', got '' [zsh status] Expected 0, got 1 stdout: stderr: zsh: bad substitution |
mksh | 12 ${var@a} for attributes [mksh stdout] Expected 'a\nar\nrx\n', got 'one\n' [mksh status] Expected 0, got 1 stdout: onestderr: mksh: <stdin>[3]: syntax error: '(' unexpected |
ksh | 12 ${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 |
toysh | 12 ${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 |
sush | 12 ${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 |
dash | 13 ${var@a} error conditions [dash stdout] Expected '[]\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 1: Bad substitution |
ash | 13 ${var@a} error conditions [ash stdout] Expected '[]\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: bad substitution |
zsh | 13 ${var@a} error conditions [zsh stdout] Expected '[]\n', got '' [zsh status] Expected 0, got 1 stdout: stderr: zsh: bad substitution |
mksh | 13 ${var@a} error conditions [mksh stdout] Expected '[]\n', got '[0]\n' stdout: [0]stderr: |
ksh | 13 ${var@a} error conditions [ksh stdout] Expected '[]\n', got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[1]: ${?@a}: bad substitution |
toysh | 13 ${var@a} error conditions [toysh stdout] Expected '[]\n', got '' [toysh status] Expected 0, got 1 stdout: stderr: main: line 1: sh: ?: @a}] |
sush | 13 ${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 |
dash | 14 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=2stderr: dash: 1: Bad substitution dash: 1: Bad substitution dash: 1: Bad substitution |
ash | 14 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=2stderr: ash: syntax error: bad substitution ash: syntax error: bad substitution ash: syntax error: bad substitution |
zsh | 14 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=1stderr: zsh:1: bad substitution zsh:1: bad substitution zsh:1: bad substitution |
ksh | 14 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=1stderr: E: ksh: ${undef@P}: bad substitution E: ksh: ${undef@a}: bad substitution |
sush | 14 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=1stderr: /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 |
dash | 15 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=2stderr: dummy: 1: dummy: Bad substitution dummy: 1: dummy: Bad substitution dummy: 1: dummy: Bad substitution |
ash | 15 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=2stderr: dummy: line 0: syntax error: bad substitution dummy: line 0: syntax error: bad substitution dummy: line 0: syntax error: bad substitution |
zsh | 15 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=1stderr: zsh:1: bad substitution zsh:1: bad substitution zsh:1: bad substitution |
mksh | 15 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=0stderr: dummy: ${@@Q}: bad substitution |
ksh | 15 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=1stderr: E: dummy: ${@@P}: bad substitution E: dummy: ${@@Q}: bad substitution E: dummy: ${@@a}: bad substitution |
toysh | 15 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=1stderr: -c: line 1: sh: @: @P} -c: line 1: sh: @: @Q} -c: line 1: sh: @: @a} |
sush | 15 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=1stderr: dummy: line 1: `${@@P}': bad substitution dummy: line 1: `${@@Q}': bad substitution dummy: line 1: `${@@a}': bad substitution |
osh | 15 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=0stderr: |
dash | 16 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=2stderr: dash: 1: Syntax error: "(" unexpected dash: 1: Syntax error: "(" unexpected dash: 1: Syntax error: "(" unexpected |
ash | 16 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=2stderr: ash: syntax error: unexpected "(" ash: syntax error: unexpected "(" ash: syntax error: unexpected "(" |
zsh | 16 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=1stderr: 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 |
mksh | 16 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=1stderr: mksh: syntax error: '(' unexpected mksh: syntax error: '(' unexpected mksh: syntax error: '(' unexpected |
ksh | 16 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=1stderr: E: ksh: syntax error: unexpected '(' E: ksh: syntax error: unexpected '(' E: ksh: syntax error: unexpected '(' |
toysh | 16 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=2stderr: -c: line 1: sh: syntax error: ) -c: line 1: sh: syntax error: ) -c: line 1: sh: syntax error: ) |
sush | 16 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=1stderr: /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 |
brush | 18 ${#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: |
bash | 19 ${!A@a} and ${!A[@]@a} stdout: x= invalid=stderr: |
dash | 19 ${!A@a} and ${!A[@]@a} [dash stdout] Expected 'x=\n', got '' [dash status] Expected 1, got 2 stdout: stderr: dash: 1: Syntax error: "(" unexpected |
ash | 19 ${!A@a} and ${!A[@]@a} [ash stdout] Expected 'x=\n', got '' [ash status] Expected 1, got 2 stdout: stderr: ash: syntax error: unexpected "(" |
zsh | 19 ${!A@a} and ${!A[@]@a} [zsh stdout] Expected 'x=\n', got '' stdout: stderr: zsh: no matches found: [x]=y zsh: bad substitution |
mksh | 19 ${!A@a} and ${!A[@]@a} [mksh stdout] Expected 'x=\n', got '' stdout: stderr: mksh: <stdin>[1]: syntax error: '(' unexpected |
ksh | 19 ${!A@a} and ${!A[@]@a} [ksh stdout] Expected 'x=\n', got '' stdout: stderr: E: ksh: <stdin>[1]: syntax error: unexpected '(' |
toysh | 19 ${!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: ) |
sush | 19 ${!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 |
brush | 19 ${!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: [31mERROR[0m error: failed to parse parameter '' |
dash | 20 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 |
ash | 20 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 |
zsh | 20 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 |
mksh | 20 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 xstderr: mksh: <stdin>[12]: declare: not found |
ksh | 20 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 '' '' xstderr: E: ksh: <stdin>[6]: ${x@K}: bad substitution |
toysh | 20 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} |
sush | 20 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 |
osh | 20 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 '' xstderr: echo ${x@K} ${empty@K} ${undef@K} ${x@K} ^ [ stdin ]:6: Unexpected token in ${} (VOp3) |
dash | 21 -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: 2stderr: dash: 2: Bad substitution dash: 3: Bad substitution dash: 4: Bad substitution |
ash | 21 -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: 2stderr: ash: syntax error: bad substitution ash: syntax error: bad substitution ash: syntax error: bad substitution |
mksh | 21 -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: 1stderr: mksh: <stdin>[3]: undef: parameter not set mksh: <stdin>[4]: undef: parameter not set |
ksh | 21 -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: 1stderr: E: ksh: <stdin>[3]: ${undef@P}: bad substitution E: ksh: <stdin>[4]: ${undef@a}: bad substitution |
brush | 21 -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: 0stderr: |
dash | 22 ${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 |
ash | 22 ${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 "(" |
zsh | 22 ${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 |
mksh | 22 ${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: |
ksh | 22 ${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 |
toysh | 22 ${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 |
sush | 22 ${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 |
dash | 23 ${!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 |
ash | 23 ${!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 "(" |
zsh | 23 ${!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 |
mksh | 23 ${!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 rstderr: mksh: <stdin>[7]: syntax error: '(' unexpected |
ksh | 23 ${!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 |
toysh | 23 ${!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 |
sush | 23 ${!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 |
bash | 24 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: |
dash | 24 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 |
ash | 24 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 "(" |
zsh | 24 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 |
mksh | 24 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 |
ksh | 24 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 '(' |
toysh | 24 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: ) |
sush | 24 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 |
brush | 24 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: |
bash | 25 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: |
dash | 25 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 |
ash | 25 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 "(" |
zsh | 25 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 |
mksh | 25 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 |
ksh | 25 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 '(' |
toysh | 25 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: ) |
sush | 25 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 |
dash | 26 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 |
ash | 26 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 "(" |
zsh | 26 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 |
mksh | 26 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 |
ksh | 26 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 '(' |
toysh | 26 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: ) |
sush | 26 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 |
brush | 26 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: |