223 passed, 1 OK, 1 not implemented, 1 BUG, 47 failed, 0 timeouts, 0 cases skipped
mksh | 2 array with empty values stdout: stderr: mksh: <stdin>[1]: syntax error: '(' unexpected |
ksh | 2 array with empty values [ksh stdout] Expected "['', 'x', '', '']\n", got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[1]: syntax error: unexpected '(' |
toysh | 2 array with empty values [toysh stdout] Expected "['', 'x', '', '']\n", got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ) |
brush | 3 substitution of IFS character, quoted and unquoted [brush stdout] Expected "['']\n[':']\n", got "[]\n[':']\n" stdout: [] [':']stderr: |
toysh | 6 Inner single quotes [toysh stdout] Expected "['b']\n", got '["\'b\'"]\n' stdout: ["'b'"]stderr: |
brush | 7 Inner single quotes, outer double quotes [brush stdout] Expected '["\'b\'"]\n', got "['b']\n" stdout: ['b']stderr: |
toysh | 8 Inner double quotes [toysh stdout] Expected "['b']\n", got '[\'"b"\']\n' stdout: ['"b"']stderr: |
toysh | 9 Inner double quotes, outer double quotes [toysh stdout] Expected "['b']\n", got '[\'"b"\']\n' stdout: ['"b"']stderr: |
toysh | 11 Multiple words: no outer quotes, inner single quotes [toysh stdout] Expected "['a b c']\n", got '["\'a", \'b\', "c\'"]\n' stdout: ["'a", 'b', "c'"]stderr: |
brush | 11 Multiple words: no outer quotes, inner single quotes [brush stdout] Expected "['a b c']\n", got "['a', 'b', 'c']\n" stdout: ['a', 'b', 'c']stderr: |
toysh | 12 Multiple words: no outer quotes, inner double quotes [toysh stdout] Expected "['a b c']\n", got '[\'"a\', \'b\', \'c"\']\n' stdout: ['"a', 'b', 'c"']stderr: |
brush | 12 Multiple words: no outer quotes, inner double quotes [brush stdout] Expected "['a b c']\n", got "['a', 'b', 'c']\n" stdout: ['a', 'b', 'c']stderr: |
toysh | 14 Multiple words: outer double quotes, inner double quotes [toysh stdout] Expected "['a b c']\n", got '[\'"a b c"\']\n' stdout: ['"a b c"']stderr: |
brush | 15 Multiple words: outer double quotes, inner single quotes [brush stdout] Expected '["\'a b c\'"]\n', got "['a b c']\n" stdout: ['a b c']stderr: |
toysh | 16 Mixed inner quotes [toysh stdout] Expected "['a b', 'c']\n", got '[\'"a\', \'b"\', \'c\']\n' stdout: ['"a', 'b"', 'c']stderr: |
brush | 16 Mixed inner quotes [brush stdout] Expected "['a b', 'c']\n", got "['a', 'b', 'c']\n" stdout: ['a', 'b', 'c']stderr: |
toysh | 17 Mixed inner quotes with outer quotes [toysh stdout] Expected "['a b c']\n", got '[\'"a b" c\']\n' stdout: ['"a b" c']stderr: |
toysh | 18 part_value tree with multiple words [toysh stdout] Expected "['1 2', '3 45', '6 7']\n", got '[\'${a:-"1\', \'2"\', \'"3\', \'4"5 6 7}\']\n' stdout: ['${a:-"1', '2"', '"3', '4"5 6 7}']stderr: |
brush | 18 part_value tree with multiple words [brush stdout] Expected "['1 2', '3 45', '6 7']\n", got "['1', '2', '3', '45', '6', '7']\n" stdout: ['1', '2', '3', '45', '6', '7']stderr: |
toysh | 19 part_value tree on RHS [toysh stdout] Expected "['1 2 3 45 6 7']\n", got '[\'${a:-"1 2" "3 4"5 6 7}\']\n' stdout: ['${a:-"1 2" "3 4"5 6 7}']stderr: |
toysh | 20 Var with multiple words: no quotes [toysh stdout] Expected "['a', 'b', 'c']\n", got "['$var']\n" stdout: ['$var']stderr: |
toysh | 21 Multiple words: no outer quotes, inner single quotes [toysh stdout] Expected "['$var']\n", got '["\'$var\'"]\n' stdout: ["'$var'"]stderr: |
toysh | 22 Multiple words: no outer quotes, inner double quotes [toysh stdout] Expected "['a b c']\n", got '[\'"$var"\']\n' stdout: ['"$var"']stderr: |
brush | 22 Multiple words: no outer quotes, inner double quotes [brush stdout] Expected "['a b c']\n", got "['a', 'b', 'c']\n" stdout: ['a', 'b', 'c']stderr: |
toysh | 23 Multiple words: outer double quotes, no inner quotes [toysh stdout] Expected "['a b c']\n", got "['$var']\n" stdout: ['$var']stderr: |
toysh | 24 Multiple words: outer double quotes, inner double quotes [toysh stdout] Expected "['a b c']\n", got '[\'"$var"\']\n' stdout: ['"$var"']stderr: |
toysh | 25 Multiple words: outer double quotes, inner single quotes [toysh stdout] Expected '["\'a b c\'"]\n', got '["\'$var\'"]\n' stdout: ["'$var'"]stderr: |
sush | 25 Multiple words: outer double quotes, inner single quotes [sush stdout] Expected '["\'a b c\'"]\n', got '["\'$var\'"]\n' stdout: ["'$var'"]stderr: |
brush | 25 Multiple words: outer double quotes, inner single quotes [brush stdout] Expected '["\'a b c\'"]\n', got "['$var']\n" stdout: ['$var']stderr: |
toysh | 26 No outer quotes, Multiple internal quotes [toysh stdout] Expected "['Aa', 'b', 'c', ' a b cD', 'E', 'F']\n", got '[\'A$var\', \'"\', \'$var"D\', \'E\', \'F\']\n' stdout: ['A$var', '"', '$var"D', 'E', 'F']stderr: |
brush | 26 No outer quotes, Multiple internal quotes [brush stdout] Expected "['Aa', 'b', 'c', ' a b cD', 'E', 'F']\n", got "['Aa', 'b', 'c', 'a', 'b', 'cD', 'E', 'F']\n" stdout: ['Aa', 'b', 'c', 'a', 'b', 'cD', 'E', 'F']stderr: |
brush | 29 The string to strip is space sensitive [brush stdout] Expected "['a b ', 'a b c d']\n", got "['a b ', 'a b ']\n" stdout: ['a b ', 'a b ']stderr: |
toysh | 30 The string to strip can be single quoted, outer is unquoted [toysh stdout] Expected "['a', 'b', 'a', 'b', 'c', 'd']\n", got "['a', 'b', 'c', 'd', 'a', 'b', 'c', 'd']\n" stdout: ['a', 'b', 'c', 'd', 'a', 'b', 'c', 'd']stderr: |
mksh | 31 Syntax error for single quote in double quote stdout: stderr: mksh: <stdin>[3]: no closing quote |
ksh | 31 Syntax error for single quote in double quote [ksh status] Expected 2, got 1 stdout: stderr: E: ksh: <stdin>[3]: no closing quote |
sush | 31 Syntax error for single quote in double quote [sush stdout] Expected u'', got '["\'a b c "]\n' [sush status] Expected 2, got 0 stdout: ["'a b c "]stderr: |
toysh | 32 "${undef-'c d'}" and "${foo%'c d'}" are parsed differently [toysh stdout] Expected '["\'c d\'", "\'c d\'"]\n[\'c d\', \'c d\']\n---\n[\'a b \', \'a b c d\']\n[\'a b zzz\', \'a b c d\']\n[\'a b zzz\', \'a b c d\']\n' Got '["\'c d\'", "\'c d\'"]\n["\'c", "d\'", "\'c", "d\'"]\n---\n[\'a b c d\', \'a b c d\']\n' [toysh status] Expected 0, got 2 stdout: ["'c d'", "'c d'"] ["'c", "d'", "'c", "d'"] --- ['a b c d', 'a b c d']stderr: main: line 9: sh: syntax error: ( |
brush | 32 "${undef-'c d'}" and "${foo%'c d'}" are parsed differently [brush stdout] Expected '["\'c d\'", "\'c d\'"]\n[\'c d\', \'c d\']\n---\n[\'a b \', \'a b c d\']\n[\'a b zzz\', \'a b c d\']\n[\'a b zzz\', \'a b c d\']\n' Got "['c d', 'c d']\n['c', 'd', 'c', 'd']\n---\n['a b ', 'a b c d']\n['a b zzz', 'a b c d']\n['a b zzz', 'a b c d']\n" stdout: ['c d', 'c d'] ['c', 'd', 'c', 'd'] --- ['a b ', 'a b c d'] ['a b zzz', 'a b c d'] ['a b zzz', 'a b c d']stderr: |
toysh | 33 $'' allowed within VarSub arguments [toysh stdout] Expected 'a\na\n', got 'abc\nabc\n' stdout: abc abcstderr: |
toysh | 34 # operator with single quoted arg (dash/ash and bash/mksh disagree, reported by Crestwave) [toysh stdout] Expected "--\n--\n-'a'-\n-'a'-\n", got '-a-\n-a-\n\n\n' stdout: -a- -a-stderr: |
toysh | 35 / operator with single quoted arg (causes syntax error in regex in OSH, reported by Crestwave) [toysh stdout] Expected "no plus or minus ''''\nno plus or minus ''''\n" Got "no plus or minus ++--''++--''\nno plus or minus ++--''++--''\n" stdout: no plus or minus ++--''++--'' no plus or minus ++--''++--''stderr: |
toysh | 36 single quotes work inside character classes [toysh stdout] Expected 'a---b\n', got 'a[[[---]]]b\n' stdout: a[[[---]]]bstderr: |
sush | 36 single quotes work inside character classes [sush stdout] Expected 'a---b\n', got 'a[[[---]]]b\n' stdout: a[[[---]]]bstderr: |
brush | 36 single quotes work inside character classes [brush stdout] Expected 'a---b\n', got '' [brush status] Expected 0, got 1 stdout: stderr: [31mERROR[0m error: invalid regex: Parsing error at position 14: Invalid character class; expression: '(?ms)[\\\[\]\]' |
toysh | 37 comparison: :- operator with single quoted arg [toysh stdout] Expected "a\n'a'\n", got "'a'\n'a'\n" stdout: 'a' 'a'stderr: |
brush | 37 comparison: :- operator with single quoted arg [brush stdout] Expected "a\n'a'\n", got 'a\na\n' stdout: a astderr: |
bash | 38 Right Brace as argument (similar to #702) stdout: } } '}' }stderr: |
toysh | 38 Right Brace as argument (similar to #702) [toysh stdout] Expected "}\n}\n''}\n}\n", got '}\n}\n\'\'}\n"}\n' stdout: } } ''} "}stderr: |
sush | 38 Right Brace as argument (similar to #702) [sush stdout] Expected "}\n}\n''}\n}\n", got "}\n}\n'}'\n}\n" stdout: } } '}' }stderr: |
brush | 38 Right Brace as argument (similar to #702) [brush stdout] Expected "}\n}\n''}\n}\n", got '}\n}\n}\n}\n' stdout: } } } }stderr: |