175 passed, 4 OK, 4 not implemented, 7 BUG, 69 failed, 0 timeouts, 0 cases skipped
toysh | 0 Lazy Evaluation of Alternative [toysh stdout] Expected 'x\n0\n0\n1\n', got 'x\n0\n$((i++))\n0\n' stdout: x 0 $((i++)) 0stderr: |
sush | 0 Lazy Evaluation of Alternative [sush stdout] Expected 'x\n0\n0\n1\n', got 'x\n0\n0\n2\n' stdout: x 0 0 2stderr: |
toysh | 3 Unquoted with array as default value [toysh stdout] Expected "['Xx1', '2', '3', '4xX']\n['Xx1', '2', '3', '4xX']\n" Got '[\'Xx"$@"xX\']\n' [toysh status] Expected 0, got 1 stdout: ['Xx"$@"xX']stderr: set: bad -- main: line 3: sh: unset: =x$@x}X |
osh | 3 Unquoted with array as default value stdout: ['Xx1 2', '3 4xX'] ['Xx1', '2', '3', '4xX']stderr: |
toysh | 4 Quoted with array as default value [toysh stdout] Expected "['Xx1 2 3 4xX']\n['Xx1 2 3 4xX']\n", got '[\'Xx"$@"xX\']\n' [toysh status] Expected 0, got 1 stdout: ['Xx"$@"xX']stderr: set: bad -- main: line 3: sh: unset: =x$@x}X" |
osh | 4 Quoted with array as default value stdout: ['Xx1 2', '3 4xX'] ['Xx1 2 3 4xX']stderr: |
toysh | 5 Assign default with array [toysh stdout] Expected "['Xx1', '2', '3', '4xX']\n['x1 2 3 4x']\n", got '[\'Xx"$@"xX\']\n[\'x"$@"x\']\n' stdout: ['Xx"$@"xX'] ['x"$@"x']stderr: set: bad -- |
osh | 5 Assign default with array stdout: ['Xx1 2', '3 4xX'] ['x1 2 3 4x']stderr: |
toysh | 11 ${s+foo} and ${s:+foo} when set -u [toysh stdout] Expected 'v=foo\nv=foo\nv=\nv=\n', got 'v=foo\nv=foo\n' [toysh status] Expected 0, got 1 stdout: v=foo v=foostderr: main: line 6: sh: v: bad substitution main: line 7: sh: v: bad substitution |
bash | 12 "${array[@]} with set -u (bash is outlier) stdout: empty // undefined //stderr: |
mksh | 12 "${array[@]} with set -u (bash is outlier) stdout: stderr: mksh: <stdin>[8]: empty[@]: parameter not set |
ksh | 12 "${array[@]} with set -u (bash is outlier) [ksh stdout] Expected 'empty //\n', got '' stdout: stderr: E: ksh: <stdin>[8]: empty[@]: parameter not set |
toysh | 12 "${array[@]} with set -u (bash is outlier) [toysh stdout] Expected 'empty //\n', got '' [toysh status] Expected 1, got -6 stdout: stderr: munmap_chunk(): invalid pointer |
brush | 12 "${array[@]} with set -u (bash is outlier) [brush stdout] Expected 'empty //\n', got 'empty //\nundefined //\n' [brush status] Expected 1, got 0 stdout: empty // undefined //stderr: |
toysh | 13 "${undefined[@]+foo}" and "${undefined[@]:+foo}", with set -u [toysh stdout] Expected 'plus //\nplus colon //\n', got '' [toysh status] Expected 0, got -6 stdout: stderr: munmap_chunk(): invalid pointer |
sush | 13 "${undefined[@]+foo}" and "${undefined[@]:+foo}", with set -u [sush stdout] Expected 'plus //\nplus colon //\n', got '' [sush status] Expected 0, got 1 stdout: stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: array: unbound variable /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 6: array: unbound variable |
brush | 13 "${undefined[@]+foo}" and "${undefined[@]:+foo}", with set -u [brush stdout] Expected 'plus //\nplus colon //\n', got 'plus /foo/\nplus colon //\n' stdout: plus /foo/ plus colon //stderr: |
mksh | 14 "${a[@]+foo}" and "${a[@]:+foo}" - operators are equivalent on arrays? stdout: + // +: // + // +: // + /foo/ +: // + /foo/ +: /foo/stderr: |
toysh | 14 "${a[@]+foo}" and "${a[@]:+foo}" - operators are equivalent on arrays? [toysh status] Expected 0, got -6 stdout: stderr: munmap_chunk(): invalid pointer |
mksh | 15 Nix idiom ${!hooksSlice+"${!hooksSlice}"} - was workaround for obsolete bash 4.3 bug stdout: stderr: |
ksh | 15 Nix idiom ${!hooksSlice+"${!hooksSlice}"} - was workaround for obsolete bash 4.3 bug [ksh stdout] Expected "[]\n[]\n['42']\n", got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[4]: ${!hooksSlice+"${!hooksSlice}"}: bad substitution E: ksh: <stdin>[8]: ${!hooksSlice+"${!hooksSlice}"}: bad substitution |
toysh | 15 Nix idiom ${!hooksSlice+"${!hooksSlice}"} - was workaround for obsolete bash 4.3 bug [toysh stdout] Expected "[]\n[]\n['42']\n", got '' [toysh status] Expected 0, got -6 stdout: stderr: munmap_chunk(): invalid pointer |
toysh | 16 ${v-foo} and ${v:-foo} when set -u [toysh stdout] Expected 'v=v\nv=v\nv=foo\nv=foo\n', got 'v=v\nv=v\n' [toysh status] Expected 0, got 1 stdout: v=v v=vstderr: main: line 6: sh: v: bad substitution main: line 7: sh: v: bad substitution |
toysh | 17 array and - and + [toysh stdout] Expected "empty=minus\na1=\na1[0]=\na2= x\na3=3 4\n---\nempty=\na1=plus\na1[0]=plus\na2=plus\na3=plus\n---\nempty=\na1=plus\na2=plus\na3=plus\n---\n['minus']\n[]\n['']\n['plus']\n['']\n['plus']\n['', 'x']\n['plus']\n['3', '4']\n['plus']\n" Got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ( |
sush | 17 array and - and + [sush stdout] Expected "empty=minus\na1=\na1[0]=\na2= x\na3=3 4\n---\nempty=\na1=plus\na1[0]=plus\na2=plus\na3=plus\n---\nempty=\na1=plus\na2=plus\na3=plus\n---\n['minus']\n[]\n['']\n['plus']\n['']\n['plus']\n['', 'x']\n['plus']\n['3', '4']\n['plus']\n" Got "empty=minus\na1=\na1[0]=\na2= x\na3=3 4\n---\nempty=\na1=plus\na1[0]=plus\na2=plus\na3=plus\n---\nempty=\na1=plus\na2=plus\na3=plus\n---\n[]\n[]\n[]\n[]\n['']\n['plus']\n['', 'x']\n['', 'x']\n['3', '4']\n['3', '4']\n" stdout: empty=minus a1= a1[0]= a2= x a3=3 4 --- empty= a1=plus a1[0]=plus a2=plus a3=plus --- empty= a1=plus a2=plus a3=plus --- [] [] [] [] [''] ['plus'] ['', 'x'] ['', 'x'] ['3', '4'] ['3', '4']stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: shopt: compat_array: not supported yet |
brush | 17 array and - and + [brush stdout] Expected "empty=minus\na1=\na1[0]=\na2= x\na3=3 4\n---\nempty=\na1=plus\na1[0]=plus\na2=plus\na3=plus\n---\nempty=\na1=plus\na2=plus\na3=plus\n---\n['minus']\n[]\n['']\n['plus']\n['']\n['plus']\n['', 'x']\n['plus']\n['3', '4']\n['plus']\n" Got "empty=\na1=\na1[0]=\na2= x\na3=3 4\n---\nempty=plus\na1=plus\na1[0]=plus\na2=plus\na3=plus\n---\nempty=\na1=plus\na2=plus\na3=plus\n---\n[]\n['plus']\n['']\n['plus']\n['']\n['plus']\n['', 'x']\n['plus']\n['3', '4']\n['plus']\n" stdout: empty= a1= a1[0]= a2= x a3=3 4 --- empty=plus a1=plus a1[0]=plus a2=plus a3=plus --- empty= a1=plus a2=plus a3=plus --- [] ['plus'] [''] ['plus'] [''] ['plus'] ['', 'x'] ['plus'] ['3', '4'] ['plus']stderr: shopt: compat_array: invalid shell option name |
brush | 18 $@ (empty) and - and + [brush stdout] Expected 'argv=minus\nargv=\nargv=minus\nargv=\n', got 'argv=\nargv=plus\nargv=minus\nargv=\n' stdout: argv= argv=plus argv=minus argv=stderr: |
toysh | 19 $@ ("") and - and + [toysh stdout] Expected 'argv=\nargv=plus\nargv=minus\nargv=\n', got 'argv=minus\nargv=\nargv=minus\nargv=\n' stdout: argv=minus argv= argv=minus argv=stderr: set: bad -- |
sush | 19 $@ ("") and - and + [sush stdout] Expected 'argv=\nargv=plus\nargv=minus\nargv=\n', got 'argv=minus\nargv=\nargv=minus\nargv=\n' stdout: argv=minus argv= argv=minus argv=stderr: |
toysh | 20 $@ ("" "") and - and + [toysh stdout] Expected 'argv=\nargv=plus\nargv=\nargv=plus\n', got 'argv=minus\nargv=\nargv=minus\nargv=\n' stdout: argv=minus argv= argv=minus argv=stderr: set: bad -- |
sush | 20 $@ ("" "") and - and + [sush stdout] Expected 'argv=\nargv=plus\nargv=\nargv=plus\n', got 'argv=minus\nargv=\nargv=\nargv=plus\n' stdout: argv=minus argv= argv= argv=plusstderr: |
brush | 20 $@ ("" "") and - and + [brush stdout] Expected 'argv=\nargv=plus\nargv=\nargv=plus\n', got 'argv=\nargv=plus\nargv=minus\nargv=\n' stdout: argv= argv=plus argv=minus argv=stderr: |
mksh | 21 $* ("" "") and - and + (IFS=) stdout: argv= argv=plus argv=minus argv=stderr: |
ksh | 21 $* ("" "") and - and + (IFS=) [ksh stdout] Expected 'argv=\nargv=plus\nargv=\nargv=plus\n', got 'argv=\nargv=plus\nargv=minus\nargv=\n' stdout: argv= argv=plus argv=minus argv=stderr: |
toysh | 21 $* ("" "") and - and + (IFS=) [toysh stdout] Expected 'argv=\nargv=plus\nargv=\nargv=plus\n', got 'argv=minus\nargv=\nargv=minus\nargv=\n' stdout: argv=minus argv= argv=minus argv=stderr: set: bad -- |
sush | 21 $* ("" "") and - and + (IFS=) [sush stdout] Expected 'argv=\nargv=plus\nargv=\nargv=plus\n', got 'argv=minus\nargv=\nargv=minus\nargv=\n' stdout: argv=minus argv= argv=minus argv=stderr: |
brush | 21 $* ("" "") and - and + (IFS=) [brush stdout] Expected 'argv=\nargv=plus\nargv=\nargv=plus\n', got 'argv=\nargv=plus\nargv=minus\nargv=\n' stdout: argv= argv=plus argv=minus argv=stderr: |
toysh | 22 "$*" ("" "") and - and + (IFS=) [toysh stdout] Expected 'argv=\nargv=plus\nargv=minus\nargv=\n', got 'argv=minus\nargv=\nargv=minus\nargv=\n' stdout: argv=minus argv= argv=minus argv=stderr: set: bad -- |
sush | 22 "$*" ("" "") and - and + (IFS=) [sush stdout] Expected 'argv=\nargv=plus\nargv=minus\nargv=\n', got 'argv=minus\nargv=\nargv=minus\nargv=\n' stdout: argv=minus argv= argv=minus argv=stderr: |
brush | 22 "$*" ("" "") and - and + (IFS=) [brush stdout] Expected 'argv=\nargv=plus\nargv=minus\nargv=\n', got 'argv= \nargv=plus\nargv=minus\nargv=\n' stdout: argv= argv=plus argv=minus argv=stderr: |
mksh | 23 assoc array and - and + stdout: stderr: |
ksh | 23 assoc array and - and + [ksh stdout] Expected 'empty=minus\nempty=\nassoc=v\nassoc=plus\n---\nempty=minus\nempty=\nassoc=v\nassoc=plus\n' Got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[3]: syntax error: unexpected '(' |
toysh | 23 assoc array and - and + [toysh stdout] Expected 'empty=minus\nempty=\nassoc=v\nassoc=plus\n---\nempty=minus\nempty=\nassoc=v\nassoc=plus\n' Got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ( |
sush | 23 assoc array and - and + [sush stdout] Expected 'empty=minus\nempty=\nassoc=v\nassoc=plus\n---\nempty=minus\nempty=\nassoc=v\nassoc=plus\n' Got 'empty=minus\nempty=\nassoc=minus\nassoc=\n---\nempty=minus\nempty=\nassoc=minus\nassoc=\n' stdout: empty=minus empty= assoc=minus assoc= --- empty=minus empty= assoc=minus assoc=stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: 'k': syntax error: operand expected (error token is "'k'") |
brush | 23 assoc array and - and + [brush stdout] Expected 'empty=minus\nempty=\nassoc=v\nassoc=plus\n---\nempty=minus\nempty=\nassoc=v\nassoc=plus\n' Got 'empty=\nempty=plus\nassoc=v\nassoc=plus\n---\nempty=minus\nempty=\nassoc=v\nassoc=plus\n' stdout: empty= empty=plus assoc=v assoc=plus --- empty=minus empty= assoc=v assoc=plusstderr: |
toysh | 24 Error when empty [toysh stdout] Expected u'', got 'should not get here\n' [toysh status] Expected 1, got 0 stdout: should not get herestderr: main: line 2: sh: empty: 'is em'pty |
sush | 24 Error when empty [sush stdout] Expected u'', got 'should not get here\n' [sush status] Expected 1, got 0 stdout: should not get herestderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: empty: is empty |
brush | 24 Error when empty [brush stdout] Expected u'', got 'should not get here\n' [brush status] Expected 1, got 0 stdout: should not get herestderr: [31mERROR[0m error: expansion error: is empty |
toysh | 25 Error when unset [toysh stdout] Expected u'', got 'should not get here\n' [toysh status] Expected 1, got 0 stdout: should not get herestderr: main: line 1: sh: unset: is empty |
sush | 25 Error when unset [sush stdout] Expected u'', got 'should not get here\n' [sush status] Expected 1, got 0 stdout: should not get herestderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: unset: is empty |
brush | 25 Error when unset [brush stdout] Expected u'', got 'should not get here\n' [brush status] Expected 1, got 0 stdout: should not get herestderr: [31mERROR[0m error: expansion error: is empty |
toysh | 28 array ${arr[0]=x} [toysh stdout] Expected '0\n1\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: echo |
mksh | 29 assoc array ${arr["k"]=x} stdout: stderr: mksh: <stdin>[1]: syntax error: '(' unexpected |
ksh | 29 assoc array ${arr["k"]=x} [ksh stdout] Expected '0\n1\n', got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[1]: syntax error: unexpected '(' |
toysh | 29 assoc array ${arr["k"]=x} [toysh stdout] Expected '0\n1\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ) |
sush | 29 assoc array ${arr["k"]=x} [sush stdout] Expected '0\n1\n', got '0\n0\n' stdout: 0 0stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: 'k': syntax error: operand expected (error token is "'k'") |
toysh | 30 "\z" as arg [toysh stdout] Expected '$\n\\(\n\\z\n"\n`\n\\\n', got '$\n(\nz\n"\n`\n\\\n' stdout: $ ( z " ` \stderr: |
sush | 30 "\z" as arg [sush stdout] Expected '$\n\\(\n\\z\n"\n`\n\\\n', got '$\n(\nz\n"\n`\n\\\n' stdout: $ ( z " ` \stderr: |
brush | 30 "\z" as arg [brush stdout] Expected '$\n\\(\n\\z\n"\n`\n\\\n', got '$\n(\nz\n"\n`\n\\\n' stdout: $ ( z " ` \stderr: |
mksh | 31 "\e" as arg stdout: stderr: |
ksh | 31 "\e" as arg [ksh stdout] Expected '\\e\n', got '\x1b\n' stdout: stderr: |
toysh | 31 "\e" as arg [toysh stdout] Expected '\\e\n', got 'e\n' stdout: estderr: |
sush | 31 "\e" as arg [sush stdout] Expected '\\e\n', got 'e\n' stdout: estderr: |
brush | 31 "\e" as arg [brush stdout] Expected '\\e\n', got 'e\n' stdout: estderr: |
toysh | 32 op-test for ${a} and ${a[0]} [toysh stdout] Expected "a : 'no-colon' 'with-colon'\na[0]: 'no-colon' 'with-colon'\na : '' 'with-colon'\na[0]: '' 'with-colon'\na : '' 'with-colon'\na[0]: '' 'with-colon'\na : '' 'with-colon'\na[0]: '' 'with-colon'\n" Got '' [toysh status] Expected 0, got -6 stdout: stderr: munmap_chunk(): invalid pointer |
sush | 32 op-test for ${a} and ${a[0]} [sush stdout] Expected "a : 'no-colon' 'with-colon'\na[0]: 'no-colon' 'with-colon'\na : '' 'with-colon'\na[0]: '' 'with-colon'\na : '' 'with-colon'\na[0]: '' 'with-colon'\na : '' 'with-colon'\na[0]: '' 'with-colon'\n" Got "a : 'no-colon' 'with-colon'\na[0]: 'no-colon' 'with-colon'\n" [sush status] Expected 0, got 127 stdout: a : 'no-colon' 'with-colon' a[0]: 'no-colon' 'with-colon'stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: Unexpected token: () /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 7: Unexpected token: } /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 9: test-hyphen: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 11: test-hyphen: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 13: test-hyphen: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 15: test-hyphen: command not found |
toysh | 33 op-test for ${a[@]} and ${a[*]} [toysh stdout] Expected "a[@]: 'no-colon' 'with-colon'\na[*]: 'no-colon' 'with-colon'\na[@]: '' 'with-colon'\na[*]: '' 'with-colon'\na[@]: ' ' ' '\na[*]: ' ' ' '\na[@]: ' ' ' '\na[*]: '' 'with-colon'\n" Got '' [toysh status] Expected 0, got -6 stdout: stderr: munmap_chunk(): invalid pointer |
sush | 33 op-test for ${a[@]} and ${a[*]} [sush stdout] Expected "a[@]: 'no-colon' 'with-colon'\na[*]: 'no-colon' 'with-colon'\na[@]: '' 'with-colon'\na[*]: '' 'with-colon'\na[@]: ' ' ' '\na[*]: ' ' ' '\na[@]: ' ' ' '\na[*]: '' 'with-colon'\n" Got "a[@]: '' ''\na[*]: 'no-colon' 'with-colon'\n" [sush status] Expected 0, got 127 stdout: a[@]: '' '' a[*]: 'no-colon' 'with-colon'stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: Unexpected token: () /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 7: Unexpected token: } /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 9: test-hyphen: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 11: test-hyphen: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 13: test-hyphen: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 15: test-hyphen: command not found |
brush | 33 op-test for ${a[@]} and ${a[*]} [brush stdout] Expected "a[@]: 'no-colon' 'with-colon'\na[*]: 'no-colon' 'with-colon'\na[@]: '' 'with-colon'\na[*]: '' 'with-colon'\na[@]: ' ' ' '\na[*]: ' ' ' '\na[@]: ' ' ' '\na[*]: '' 'with-colon'\n" Got "a[@]: '' 'with-colon'\na[*]: '' 'with-colon'\na[@]: '' 'with-colon'\na[*]: '' 'with-colon'\na[@]: ' ' 'with-colon'\na[*]: ' ' 'with-colon'\na[@]: ' ' 'with-colon'\na[*]: ' ' 'with-colon'\n" stdout: a[@]: '' 'with-colon' a[*]: '' 'with-colon' a[@]: '' 'with-colon' a[*]: '' 'with-colon' a[@]: ' ' 'with-colon' a[*]: ' ' 'with-colon' a[@]: ' ' 'with-colon' a[*]: ' ' 'with-colon'stderr: |
mksh | 34 op-test for ${!array} with array="a" and array="a[0]" stdout: stderr: |
ksh | 34 op-test for ${!array} with array="a" and array="a[0]" [ksh stdout] Expected "ref=a : 'no-colon' 'with-colon'\nref=a[0]: 'no-colon' 'with-colon'\nref=a : '' 'with-colon'\nref=a[0]: '' 'with-colon'\nref=a : '' 'with-colon'\nref=a[0]: '' 'with-colon'\nref=a : '' 'with-colon'\nref=a[0]: '' 'with-colon'\n" Got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[11]: ${!ref-no-colon}: bad substitution E: ksh: <stdin>[13]: ${!ref-no-colon}: bad substitution E: ksh: <stdin>[15]: ${!ref-no-colon}: bad substitution E: ksh: <stdin>[17]: ${!ref-no-colon}: bad substitution |
toysh | 34 op-test for ${!array} with array="a" and array="a[0]" [toysh stdout] Expected "ref=a : 'no-colon' 'with-colon'\nref=a[0]: 'no-colon' 'with-colon'\nref=a : '' 'with-colon'\nref=a[0]: '' 'with-colon'\nref=a : '' 'with-colon'\nref=a[0]: '' 'with-colon'\nref=a : '' 'with-colon'\nref=a[0]: '' 'with-colon'\n" Got '' [toysh status] Expected 0, got -6 stdout: stderr: munmap_chunk(): invalid pointer |
sush | 34 op-test for ${!array} with array="a" and array="a[0]" [sush stdout] Expected "ref=a : 'no-colon' 'with-colon'\nref=a[0]: 'no-colon' 'with-colon'\nref=a : '' 'with-colon'\nref=a[0]: '' 'with-colon'\nref=a : '' 'with-colon'\nref=a[0]: '' 'with-colon'\nref=a : '' 'with-colon'\nref=a[0]: '' 'with-colon'\n" Got "ref=a : 'no-colon' 'with-colon'\nref=a[0]: 'no-colon' 'with-colon'\n" [sush status] Expected 0, got 127 stdout: ref=a : 'no-colon' 'with-colon' ref=a[0]: 'no-colon' 'with-colon'stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: Unexpected token: () /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 9: Unexpected token: } /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 11: test-hyphen: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 13: test-hyphen: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 15: test-hyphen: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 17: test-hyphen: command not found |
bash | 35 op-test for ${!array} with array="a[@]" or array="a[*]" stdout: ref=a[@]: 'no-colon' 'with-colon' ref=a[*]: 'no-colon' 'with-colon' ref=a[@]: '' '' ref=a[*]: '' '' ref=a[@]: ' ' ' ' ref=a[*]: ' ' ' ' ref=a[@]: ' ' ' ' ref=a[*]: '' ''stderr: |
mksh | 35 op-test for ${!array} with array="a[@]" or array="a[*]" stdout: stderr: |
ksh | 35 op-test for ${!array} with array="a[@]" or array="a[*]" [ksh stdout] Expected "ref=a[@]: 'no-colon' 'with-colon'\nref=a[*]: 'no-colon' 'with-colon'\nref=a[@]: '' 'with-colon'\nref=a[*]: '' 'with-colon'\nref=a[@]: ' ' ' '\nref=a[*]: ' ' ' '\nref=a[@]: ' ' ' '\nref=a[*]: '' 'with-colon'\n" Got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[11]: ${!ref-no-colon}: bad substitution E: ksh: <stdin>[13]: ${!ref-no-colon}: bad substitution E: ksh: <stdin>[15]: ${!ref-no-colon}: bad substitution E: ksh: <stdin>[17]: ${!ref-no-colon}: bad substitution |
toysh | 35 op-test for ${!array} with array="a[@]" or array="a[*]" [toysh stdout] Expected "ref=a[@]: 'no-colon' 'with-colon'\nref=a[*]: 'no-colon' 'with-colon'\nref=a[@]: '' 'with-colon'\nref=a[*]: '' 'with-colon'\nref=a[@]: ' ' ' '\nref=a[*]: ' ' ' '\nref=a[@]: ' ' ' '\nref=a[*]: '' 'with-colon'\n" Got '' [toysh status] Expected 0, got -6 stdout: stderr: munmap_chunk(): invalid pointer |
sush | 35 op-test for ${!array} with array="a[@]" or array="a[*]" [sush stdout] Expected "ref=a[@]: 'no-colon' 'with-colon'\nref=a[*]: 'no-colon' 'with-colon'\nref=a[@]: '' 'with-colon'\nref=a[*]: '' 'with-colon'\nref=a[@]: ' ' ' '\nref=a[*]: ' ' ' '\nref=a[@]: ' ' ' '\nref=a[*]: '' 'with-colon'\n" Got "ref=a[@]: 'no-colon' 'with-colon'\nref=a[*]: 'no-colon' 'with-colon'\n" [sush status] Expected 0, got 127 stdout: ref=a[@]: 'no-colon' 'with-colon' ref=a[*]: 'no-colon' 'with-colon'stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: Unexpected token: () /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 9: Unexpected token: } /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 11: test-hyphen: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 13: test-hyphen: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 15: test-hyphen: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 17: test-hyphen: command not found |
brush | 35 op-test for ${!array} with array="a[@]" or array="a[*]" [brush stdout] Expected "ref=a[@]: 'no-colon' 'with-colon'\nref=a[*]: 'no-colon' 'with-colon'\nref=a[@]: '' 'with-colon'\nref=a[*]: '' 'with-colon'\nref=a[@]: ' ' ' '\nref=a[*]: ' ' ' '\nref=a[@]: ' ' ' '\nref=a[*]: '' 'with-colon'\n" Got "ref=a[@]: '' 'with-colon'\nref=a[*]: '' 'with-colon'\nref=a[@]: '' 'with-colon'\nref=a[*]: '' 'with-colon'\nref=a[@]: ' ' 'with-colon'\nref=a[*]: ' ' 'with-colon'\nref=a[@]: ' ' 'with-colon'\nref=a[*]: ' ' 'with-colon'\n" stdout: ref=a[@]: '' 'with-colon' ref=a[*]: '' 'with-colon' ref=a[@]: '' 'with-colon' ref=a[*]: '' 'with-colon' ref=a[@]: ' ' 'with-colon' ref=a[*]: ' ' 'with-colon' ref=a[@]: ' ' 'with-colon' ref=a[*]: ' ' 'with-colon'stderr: |
mksh | 36 op-test for unquoted ${a[*]:-empty} with IFS= stdout: ['empty']stderr: |
ksh | 36 op-test for unquoted ${a[*]:-empty} with IFS= [ksh stdout] Expected '[]\n', got "['empty']\n" stdout: ['empty']stderr: |
toysh | 36 op-test for unquoted ${a[*]:-empty} with IFS= [toysh stdout] Expected '[]\n', got '' [toysh status] Expected 0, got -6 stdout: stderr: munmap_chunk(): invalid pointer |
sush | 36 op-test for unquoted ${a[*]:-empty} with IFS= [sush stdout] Expected '[]\n', got "['']\n" stdout: ['']stderr: |
brush | 36 op-test for unquoted ${a[*]:-empty} with IFS= [brush stdout] Expected '[]\n', got "['empty']\n" stdout: ['empty']stderr: |