106 passed, 6 OK, 8 not implemented, 14 BUG, 86 failed, 0 timeouts, 0 cases skipped
dash | 0 String slice [dash stdout] Expected 'bcd\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 2: Bad substitution |
dash | 1 Cannot take length of substring slice [dash status] Expected 1, got 0 stdout: 5stderr: |
ash | 1 Cannot take length of substring slice [ash status] Expected 1, got 2 stdout: stderr: ash: syntax error: bad substitution |
zsh | 1 Cannot take length of substring slice stdout: 3stderr: |
toysh | 1 Cannot take length of substring slice [toysh status] Expected 1, got 0 stdout: stderr: |
sush | 1 Cannot take length of substring slice [sush status] Expected 1, got 0 stdout: stderr: |
brush | 1 Cannot take length of substring slice [brush status] Expected 1, got 0 stdout: ${#v:1:3}stderr: |
osh | 1 Cannot take length of substring slice stdout: stderr: echo ${#v:1:3} ^ [ stdin ]:2: Expected } after length expression |
dash | 2 Out of range string slice: begin [dash stdout] Expected '_\n0\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 2: Bad substitution |
mksh | 2 Out of range string slice: begin stdout: 0stderr: |
ksh | 2 Out of range string slice: begin [ksh stdout] Expected '_\n0\n', got '\n0\n' stdout: 0stderr: |
dash | 3 Out of range string slice: length [dash stdout] Expected '_defg\n0\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 2: Bad substitution |
mksh | 3 Out of range string slice: length stdout: _defg 0stderr: |
dash | 4 Negative start index [dash stdout] Expected 'def\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 2: Bad substitution |
brush | 4 Negative start index [brush stdout] Expected 'def\n', got 'abc\n' stdout: abcstderr: |
dash | 5 Negative start index respects unicode [dash stdout] Expected 'd-\xce\xbc\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 2: Bad substitution |
ash | 5 Negative start index respects unicode [ash stdout] Expected 'd-\xce\xbc\n', got '-\xce\xbc\n' stdout: -μstderr: |
mksh | 5 Negative start index respects unicode stdout: -μstderr: |
toysh | 5 Negative start index respects unicode [toysh stdout] Expected 'd-\xce\xbc\n', got '-\xce\xbc\n' stdout: -μstderr: |
brush | 5 Negative start index respects unicode [brush stdout] Expected 'd-\xce\xbc\n', got 'abc\n' stdout: abcstderr: |
dash | 6 Negative second arg is position, not length! [dash stdout] Expected 'def de d\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 2: Bad substitution |
mksh | 6 Negative second arg is position, not length! stdout: defg defg defgstderr: |
ksh | 6 Negative second arg is position, not length! [ksh stdout] Expected 'def de d\n', got 'defg defg defg\n' stdout: defg defg defgstderr: |
sush | 6 Negative second arg is position, not length! [sush stdout] Expected 'def de d\n', got '\n' stdout: stderr: |
brush | 6 Negative second arg is position, not length! [brush stdout] Expected 'def de d\n', got 'defg defg defg\n' stdout: defg defg defgstderr: |
dash | 7 Negative start index respects unicode [dash stdout] Expected 'cd\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 2: Bad substitution |
ash | 7 Negative start index respects unicode [ash stdout] Expected 'cd\n', got 'd-\n' stdout: d-stderr: |
mksh | 7 Negative start index respects unicode stdout: d-μ-stderr: |
ksh | 7 Negative start index respects unicode [ksh stdout] Expected 'cd\n', got 'cd-\xce\xbc-\n' stdout: cd-μ-stderr: |
toysh | 7 Negative start index respects unicode [toysh stdout] Expected 'cd\n', got 'd-\n' stdout: d-stderr: |
sush | 7 Negative start index respects unicode [sush stdout] Expected 'cd\n', got '\n' stdout: stderr: |
brush | 7 Negative start index respects unicode [brush stdout] Expected 'cd\n', got 'abcd-\n' stdout: abcd-stderr: |
dash | 8 String slice with math [dash stdout] Expected 'def\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 3: Bad substitution |
dash | 9 Slice undefined [dash stdout] Expected '--\n', got '' [dash status] Expected 1, got 2 stdout: stderr: dash: 1: Bad substitution |
ash | 9 Slice undefined [ash status] Expected 1, got 2 stdout: --stderr: ash: undef: parameter not set |
mksh | 9 Slice undefined stdout: -- -- -done-stderr: |
ksh | 9 Slice undefined [ksh stdout] Expected '--\n', got '--\n--\n-done-\n' [ksh status] Expected 1, got 0 stdout: -- -- -done-stderr: |
toysh | 9 Slice undefined [toysh stdout] Expected '--\n', got '\n\n-done-\n' [toysh status] Expected 1, got 0 stdout: -done-stderr: set: bad -o nounset |
sush | 9 Slice undefined [sush stdout] Expected '--\n', got '--\n--\n-done-\n' [sush status] Expected 1, got 0 stdout: -- -- -done-stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: set: nounset: invalid option name |
brush | 9 Slice undefined [brush stdout] Expected '--\n', got '--\n--\n-done-\n' [brush status] Expected 1, got 0 stdout: -- -- -done-stderr: |
dash | 10 Slice UTF-8 String [dash stdout] Expected '-\xce\xbc-\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 2: Bad substitution |
ash | 10 Slice UTF-8 String [ash stdout] Expected '-\xce\xbc-\n', got '-\xce\xbc\n' stdout: -μstderr: |
mksh | 10 Slice UTF-8 String stdout: -μstderr: |
toysh | 10 Slice UTF-8 String [toysh stdout] Expected '-\xce\xbc-\n', got '-\xce\xbc\n' stdout: -μstderr: |
bash | 11 Slice string with invalid UTF-8 results in empty string and warning stdout: -bcd-stderr: |
dash | 11 Slice string with invalid UTF-8 results in empty string and warning [dash stdout] Expected '--\n', got '' [dash stderr] Expected '[??? no location ???] warning: UTF-8 decode: Bad encoding at offset 0 in string of 6 bytes\n' Got 'dash: 2: Bad substitution\n' [dash status] Expected 0, got 2 stdout: stderr: dash: 2: Bad substitution |
ash | 11 Slice string with invalid UTF-8 results in empty string and warning [ash stdout] Expected '--\n', got '-bcd-\n' [ash stderr] Expected '[??? no location ???] warning: UTF-8 decode: Bad encoding at offset 0 in string of 6 bytes\n' Got '' stdout: -bcd-stderr: |
zsh | 11 Slice string with invalid UTF-8 results in empty string and warning stdout: -bcd-stderr: |
mksh | 11 Slice string with invalid UTF-8 results in empty string and warning stdout: -bcd-stderr: |
ksh | 11 Slice string with invalid UTF-8 results in empty string and warning [ksh stdout] Expected '--\n', got '-bcd-\n' [ksh stderr] Expected '[??? no location ???] warning: UTF-8 decode: Bad encoding at offset 0 in string of 6 bytes\n' Got '' stdout: -bcd-stderr: |
toysh | 11 Slice string with invalid UTF-8 results in empty string and warning [toysh stdout] Expected '--\n', got '-\xbfbc-\n' [toysh stderr] Expected '[??? no location ???] warning: UTF-8 decode: Bad encoding at offset 0 in string of 6 bytes\n' Got '' stdout: '-\xbfbc-\n'stderr: |
sush | 11 Slice string with invalid UTF-8 results in empty string and warning [sush stdout] Expected '--\n', got '-cde-\n' [sush stderr] Expected '[??? no location ???] warning: UTF-8 decode: Bad encoding at offset 0 in string of 6 bytes\n' Got '' stdout: -cde-stderr: |
brush | 11 Slice string with invalid UTF-8 results in empty string and warning [brush stdout] Expected '--\n', got '-bcd-\n' [brush stderr] Expected '[??? no location ???] warning: UTF-8 decode: Bad encoding at offset 0 in string of 6 bytes\n' Got '' stdout: -bcd-stderr: |
bash | 12 Slice string with invalid UTF-8 with strict_word_eval stdout: slice -bcd-stderr: bash: line 1: shopt: strict_word_eval: invalid shell option name |
dash | 12 Slice string with invalid UTF-8 with strict_word_eval [dash status] Expected 1, got 2 stdout: slicestderr: dash: 1: shopt: not found dash: 4: Bad substitution |
ash | 12 Slice string with invalid UTF-8 with strict_word_eval [ash stdout] Expected 'slice\n', got 'slice\n-bcd-\n' [ash status] Expected 1, got 0 stdout: slice -bcd-stderr: ash: shopt: not found |
zsh | 12 Slice string with invalid UTF-8 with strict_word_eval stdout: slice -bcd-stderr: zsh: command not found: shopt |
mksh | 12 Slice string with invalid UTF-8 with strict_word_eval stdout: slice -bcd-stderr: mksh: <stdin>[1]: shopt: not found |
ksh | 12 Slice string with invalid UTF-8 with strict_word_eval [ksh stdout] Expected 'slice\n', got 'slice\n-bcd-\n' [ksh status] Expected 1, got 0 stdout: slice -bcd-stderr: E: ksh: <stdin>[1]: shopt: inaccessible or not found |
toysh | 12 Slice string with invalid UTF-8 with strict_word_eval [toysh stdout] Expected 'slice\n', got 'slice\n-\xbfbc-\n' [toysh status] Expected 1, got 0 stdout: 'slice\n-\xbfbc-\n'stderr: sh: shopt: No such file or directory |
sush | 12 Slice string with invalid UTF-8 with strict_word_eval [sush stdout] Expected 'slice\n', got 'slice\n-cde-\n' [sush status] Expected 1, got 0 stdout: slice -cde-stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: shopt: strict_word_eval: not supported yet |
brush | 12 Slice string with invalid UTF-8 with strict_word_eval [brush stdout] Expected 'slice\n', got 'slice\n-bcd-\n' [brush status] Expected 1, got 0 stdout: slice -bcd-stderr: shopt: strict_word_eval: invalid shell option name |
dash | 13 Slice with an index that's an array -- silent a[0] decay [dash stdout] Expected 'assigned\nde\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 1: Syntax error: "(" unexpected |
ash | 13 Slice with an index that's an array -- silent a[0] decay [ash stdout] Expected 'assigned\nde\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: unexpected "(" |
zsh | 13 Slice with an index that's an array -- silent a[0] decay stdout: assignedstderr: zsh: bad math expression: operator expected at `4 5' |
toysh | 13 Slice with an index that's an array -- silent a[0] decay [toysh stdout] Expected 'assigned\nde\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: 3 |
dash | 14 Slice with an assoc array [dash stdout] Expected 'assigned\nab\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 1: Syntax error: "(" unexpected |
ash | 14 Slice with an assoc array [ash stdout] Expected 'assigned\nab\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: unexpected "(" |
mksh | 14 Slice with an assoc array stdout: stderr: mksh: <stdin>[1]: syntax error: '(' unexpected |
ksh | 14 Slice with an assoc array [ksh stdout] Expected 'assigned\nab\n', got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[1]: syntax error: unexpected '(' |
toysh | 14 Slice with an assoc array [toysh stdout] Expected 'assigned\nab\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ) |
dash | 15 Simple ${@:offset} [dash stdout] Expected "['SHELL', '4', '5', '6']\n['4', '5', '6']\n['5', '6']\n" Got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 3: Bad substitution dash: 4: Bad substitution |
ash | 15 Simple ${@:offset} [ash stdout] Expected "['SHELL', '4', '5', '6']\n['4', '5', '6']\n['5', '6']\n" Got "['4', '5', '6']\n['5', '6']\n['5', '6']\n" stdout: ['4', '5', '6'] ['5', '6'] ['5', '6']stderr: |
mksh | 15 Simple ${@:offset} stdout: stderr: mksh: <stdin>[3]: ${@: 0}: bad substitution mksh: <stdin>[6]: ${@: 1}: bad substitution |
ksh | 15 Simple ${@:offset} [ksh stdout] Expected "['SHELL', '4', '5', '6']\n['4', '5', '6']\n['5', '6']\n" Got '\n' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[3]: ${@: 0}: bad substitution E: ksh: <stdin>[6]: ${@: 1}: bad substitution |
toysh | 15 Simple ${@:offset} [toysh stdout] Expected "['SHELL', '4', '5', '6']\n['4', '5', '6']\n['5', '6']\n" Got '[]\n[]\n[]\n' stdout: [] [] []stderr: set: bad -- |
dash | 16 ${@:offset} and ${*:offset} [dash stdout] Expected "['-SHELL', 'a', '1', 'b', '2', 'c', '3-']\n['-a', '1', 'b', '2', 'c', '3-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL', 'a', '1', 'b', '2', 'c', '3-']\n['-a', '1', 'b', '2', 'c', '3-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL a 1 b 2 c 3-']\n['-a 1 b 2 c 3-']\n['-c 3-']\n['--']\n['--']\n['-SHELL', 'a 1', 'b 2', 'c 3-']\n['-a 1', 'b 2', 'c 3-']\n['-c 3-']\n['--']\n['--']\n" Got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 3: Syntax error: Bad function name |
ash | 16 ${@:offset} and ${*:offset} [ash stdout] Expected "['-SHELL', 'a', '1', 'b', '2', 'c', '3-']\n['-a', '1', 'b', '2', 'c', '3-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL', 'a', '1', 'b', '2', 'c', '3-']\n['-a', '1', 'b', '2', 'c', '3-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL a 1 b 2 c 3-']\n['-a 1 b 2 c 3-']\n['-c 3-']\n['--']\n['--']\n['-SHELL', 'a 1', 'b 2', 'c 3-']\n['-a 1', 'b 2', 'c 3-']\n['-c 3-']\n['--']\n['--']\n" Got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: bad function name |
zsh | 16 ${@:offset} and ${*:offset} stdout: stderr: |
mksh | 16 ${@:offset} and ${*:offset} stdout: stderr: mksh: <stdin>[28]: ${*: 0}: bad substitution |
ksh | 16 ${@:offset} and ${*:offset} [ksh stdout] Expected "['-SHELL', 'a', '1', 'b', '2', 'c', '3-']\n['-a', '1', 'b', '2', 'c', '3-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL', 'a', '1', 'b', '2', 'c', '3-']\n['-a', '1', 'b', '2', 'c', '3-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL a 1 b 2 c 3-']\n['-a 1 b 2 c 3-']\n['-c 3-']\n['--']\n['--']\n['-SHELL', 'a 1', 'b 2', 'c 3-']\n['-a 1', 'b 2', 'c 3-']\n['-c 3-']\n['--']\n['--']\n" Got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[28]: ${*: 0}: bad substitution |
toysh | 16 ${@:offset} and ${*:offset} [toysh stdout] Expected "['-SHELL', 'a', '1', 'b', '2', 'c', '3-']\n['-a', '1', 'b', '2', 'c', '3-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL', 'a', '1', 'b', '2', 'c', '3-']\n['-a', '1', 'b', '2', 'c', '3-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL a 1 b 2 c 3-']\n['-a 1 b 2 c 3-']\n['-c 3-']\n['--']\n['--']\n['-SHELL', 'a 1', 'b 2', 'c 3-']\n['-a 1', 'b 2', 'c 3-']\n['-c 3-']\n['--']\n['--']\n" Got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ( |
sush | 16 ${@:offset} and ${*:offset} [sush stdout] Expected "['-SHELL', 'a', '1', 'b', '2', 'c', '3-']\n['-a', '1', 'b', '2', 'c', '3-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL', 'a', '1', 'b', '2', 'c', '3-']\n['-a', '1', 'b', '2', 'c', '3-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL a 1 b 2 c 3-']\n['-a 1 b 2 c 3-']\n['-c 3-']\n['--']\n['--']\n['-SHELL', 'a 1', 'b 2', 'c 3-']\n['-a 1', 'b 2', 'c 3-']\n['-c 3-']\n['--']\n['--']\n" Got '[]\n' [sush status] Expected 0, got 127 stdout: []stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: Unexpected token: () /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 6: Unexpected token: } /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 7: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 8: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 9: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 10: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 11: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 12: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 13: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 14: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 15: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 16: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 17: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 18: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 19: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 20: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 21: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 22: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 23: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 24: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 25: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 26: argv.shell-name-checked: command not found |
dash | 17 ${@:offset:length} and ${*:offset:length} [dash stdout] Expected "['-SHELL', 'a', '1-']\n['-a', '1', 'b', '2-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL', 'a', '1-']\n['-a', '1', 'b', '2-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL a 1-']\n['-a 1 b 2-']\n['-c 3-']\n['--']\n['--']\n['-SHELL', 'a 1-']\n['-a 1', 'b 2-']\n['-c 3-']\n['--']\n['--']\n" Got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 3: Syntax error: Bad function name |
ash | 17 ${@:offset:length} and ${*:offset:length} [ash stdout] Expected "['-SHELL', 'a', '1-']\n['-a', '1', 'b', '2-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL', 'a', '1-']\n['-a', '1', 'b', '2-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL a 1-']\n['-a 1 b 2-']\n['-c 3-']\n['--']\n['--']\n['-SHELL', 'a 1-']\n['-a 1', 'b 2-']\n['-c 3-']\n['--']\n['--']\n" Got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: bad function name |
zsh | 17 ${@:offset:length} and ${*:offset:length} stdout: stderr: |
mksh | 17 ${@:offset:length} and ${*:offset:length} stdout: stderr: mksh: <stdin>[28]: ${*: 0:2}: bad substitution |
ksh | 17 ${@:offset:length} and ${*:offset:length} [ksh stdout] Expected "['-SHELL', 'a', '1-']\n['-a', '1', 'b', '2-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL', 'a', '1-']\n['-a', '1', 'b', '2-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL a 1-']\n['-a 1 b 2-']\n['-c 3-']\n['--']\n['--']\n['-SHELL', 'a 1-']\n['-a 1', 'b 2-']\n['-c 3-']\n['--']\n['--']\n" Got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[28]: ${*: 0:2}: bad substitution |
toysh | 17 ${@:offset:length} and ${*:offset:length} [toysh stdout] Expected "['-SHELL', 'a', '1-']\n['-a', '1', 'b', '2-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL', 'a', '1-']\n['-a', '1', 'b', '2-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL a 1-']\n['-a 1 b 2-']\n['-c 3-']\n['--']\n['--']\n['-SHELL', 'a 1-']\n['-a 1', 'b 2-']\n['-c 3-']\n['--']\n['--']\n" Got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ( |
sush | 17 ${@:offset:length} and ${*:offset:length} [sush stdout] Expected "['-SHELL', 'a', '1-']\n['-a', '1', 'b', '2-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL', 'a', '1-']\n['-a', '1', 'b', '2-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL a 1-']\n['-a 1 b 2-']\n['-c 3-']\n['--']\n['--']\n['-SHELL', 'a 1-']\n['-a 1', 'b 2-']\n['-c 3-']\n['--']\n['--']\n" Got '[]\n' [sush status] Expected 0, got 127 stdout: []stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: Unexpected token: () /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 6: Unexpected token: } /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 7: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 8: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 9: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 10: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 11: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 12: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 13: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 14: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 15: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 16: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 17: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 18: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 19: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 20: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 21: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 22: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 23: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 24: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 25: argv.shell-name-checked: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 26: argv.shell-name-checked: command not found |
dash | 18 ${@:0:1} [dash stdout] Expected 'SHELL\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 2: Bad substitution dash: 3: Bad substitution |
ash | 18 ${@:0:1} [ash stdout] Expected 'SHELL\n', got 'a\n' stdout: astderr: |
mksh | 18 ${@:0:1} stdout: stderr: mksh: <stdin>[2]: ${@: 0:1}: bad substitution |
ksh | 18 ${@:0:1} [ksh stdout] Expected 'SHELL\n', got '\n' stdout: stderr: E: ksh: <stdin>[2]: ${@: 0:1}: bad substitution |
toysh | 18 ${@:0:1} [toysh stdout] Expected 'SHELL\n', got '\n' stdout: stderr: main: line 2: sh: }: 0:1} |
dash | 19 Permutations of implicit begin and length [dash stdout] Expected "['1', '2', '3']\n['1', '2', '3']\n[]\n\n['1', '2', '3']\n['1', '2', '3']\n[]\n\n['123']\n['123']\n['']\n" Got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 1: Syntax error: "(" unexpected |
ash | 19 Permutations of implicit begin and length [ash stdout] Expected "['1', '2', '3']\n['1', '2', '3']\n[]\n\n['1', '2', '3']\n['1', '2', '3']\n[]\n\n['123']\n['123']\n['']\n" Got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: unexpected "(" |
mksh | 19 Permutations of implicit begin and length stdout: ['1', '2', '3']stderr: mksh: <stdin>[5]: ${array[@]: 0}: bad substitution |
ksh | 19 Permutations of implicit begin and length [ksh stdout] Expected "['1', '2', '3']\n['1', '2', '3']\n[]\n\n['1', '2', '3']\n['1', '2', '3']\n[]\n\n['123']\n['123']\n['']\n" Got "['1', '2', '3']\n" [ksh status] Expected 0, got 1 stdout: ['1', '2', '3']stderr: E: ksh: <stdin>[5]: ${array[@]: 0}: bad substitution |
toysh | 19 Permutations of implicit begin and length [toysh stdout] Expected "['1', '2', '3']\n['1', '2', '3']\n[]\n\n['1', '2', '3']\n['1', '2', '3']\n[]\n\n['123']\n['123']\n['']\n" Got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: 1 |
dash | 20 ${array[@]:} vs ${array[@]: } - bash and zsh inconsistent [dash stdout] Expected "['space', '1', '2', '3']\n['space', '123']\n" Got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 1: Syntax error: "(" unexpected dash: 1: Syntax error: "(" unexpected dash: 1: Syntax error: Missing '}' dash: 1: Bad substitution |
ash | 20 ${array[@]:} vs ${array[@]: } - bash and zsh inconsistent [ash stdout] Expected "['space', '1', '2', '3']\n['space', '123']\n" Got "['space', '123']\n" stdout: ['space', '123']stderr: ash: syntax error: unexpected "(" ash: syntax error: unexpected "(" ash: syntax error: missing '}' |
mksh | 20 ${array[@]:} vs ${array[@]: } - bash and zsh inconsistent stdout: ['space', '123']stderr: mksh: ${array[@]:}: bad substitution mksh: ${array[@]: }: bad substitution mksh: ${s:}: bad substitution |
ksh | 20 ${array[@]:} vs ${array[@]: } - bash and zsh inconsistent [ksh stdout] Expected "['space', '1', '2', '3']\n['space', '123']\n" Got "['space', '123']\n" stdout: ['space', '123']stderr: E: ksh: ${array[@]:}: bad substitution E: ksh: ${array[@]: }: bad substitution E: ksh: ${s:}: bad substitution |
toysh | 20 ${array[@]:} vs ${array[@]: } - bash and zsh inconsistent [toysh stdout] Expected "['space', '1', '2', '3']\n['space', '123']\n" Got '' [toysh status] Expected 0, got 1 stdout: stderr: -c: line 1: sh: syntax error: 1 -c: line 1: sh: syntax error: 1 -c: line 1: sh: bad ${s:} @ 4 -c: line 1: sh: bad ${s: } @ 5 |
brush | 20 ${array[@]:} vs ${array[@]: } - bash and zsh inconsistent [brush stdout] Expected "['space', '1', '2', '3']\n['space', '123']\n" Got "['1', '2', '3']\n['123']\n" stdout: ['1', '2', '3'] ['123']stderr: [31mERROR[0m error: arithmetic evaluation error: failed to parse expression: ' ' [31mERROR[0m error: arithmetic evaluation error: failed to parse expression: ' ' |
osh | 20 ${array[@]:} vs ${array[@]: } - bash and zsh inconsistent stdout: ['1', '2', '3'] ['space', '1', '2', '3'] ['123'] ['space', '123']stderr: |
dash | 21 ${array[@]::} has implicit length of zero - for ble.sh [dash stdout] Expected '[]\n[]\n\n[]\n[]\n', got '' [dash status] Expected 0, got 2 stdout: stderr: dash: 1: Syntax error: "(" unexpected |
ash | 21 ${array[@]::} has implicit length of zero - for ble.sh [ash stdout] Expected '[]\n[]\n\n[]\n[]\n', got '' [ash status] Expected 0, got 2 stdout: stderr: ash: syntax error: unexpected "(" |
zsh | 21 ${array[@]::} has implicit length of zero - for ble.sh stdout: stderr: zsh: closing brace expected |
mksh | 21 ${array[@]::} has implicit length of zero - for ble.sh stdout: stderr: mksh: <stdin>[2]: ${array[@]:0:}: bad substitution |
ksh | 21 ${array[@]::} has implicit length of zero - for ble.sh [ksh stdout] Expected '[]\n[]\n\n[]\n[]\n', got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[2]: ${array[@]:0:}: bad substitution |
toysh | 21 ${array[@]::} has implicit length of zero - for ble.sh [toysh stdout] Expected '[]\n[]\n\n[]\n[]\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: 1 |
sush | 21 ${array[@]::} has implicit length of zero - for ble.sh [sush stdout] Expected '[]\n[]\n\n[]\n[]\n', got '\n' [sush status] Expected 0, got 1 stdout: stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: `': bad substitution /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: `': bad substitution /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 8: `': bad substitution /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 9: `': bad substitution |