Results for var-sub-quote.test.sh

statusoshosh_.pyosh_.cc
pass 39386
FAIL 0133
total393939
caseoshosh_.pyosh_.ccdescription
0pass pass FAIL "${empty:-}"
details
1pass pass FAIL ${empty:-}
details
2pass pass FAIL array with empty values
details
3pass pass FAIL substitution of IFS character, quoted and unquoted
details
4pass pass FAIL :-
details
5pass pass FAIL -
details
6pass pass FAIL Inner single quotes
details
7pass pass FAIL Inner single quotes, outer double quotes
details
8pass pass FAIL Inner double quotes
details
9pass pass FAIL Inner double quotes, outer double quotes
details
10pass pass FAIL Multiple words: no quotes
details
11pass pass FAIL Multiple words: no outer quotes, inner single quotes
details
12pass pass FAIL Multiple words: no outer quotes, inner double quotes
details
13pass pass FAIL Multiple words: outer double quotes, no inner quotes
details
14pass pass FAIL Multiple words: outer double quotes, inner double quotes
details
15pass pass FAIL Multiple words: outer double quotes, inner single quotes
details
16pass pass FAIL Mixed inner quotes
details
17pass pass FAIL Mixed inner quotes with outer quotes
details
18pass pass FAIL part_value tree with multiple words
details
19pass pass FAIL part_value tree on RHS
details
20pass pass FAIL Var with multiple words: no quotes
details
21pass pass FAIL Multiple words: no outer quotes, inner single quotes
details
22pass pass FAIL Multiple words: no outer quotes, inner double quotes
details
23pass pass FAIL Multiple words: outer double quotes, no inner quotes
details
24pass pass FAIL Multiple words: outer double quotes, inner double quotes
details
25pass pass FAIL Multiple words: outer double quotes, inner single quotes
details
26pass pass FAIL No outer quotes, Multiple internal quotes
details
27pass pass FAIL Strip a string with single quotes, unquoted
details
28pass pass FAIL Strip a string with single quotes, double quoted
details
29pass pass FAIL The string to strip is space sensitive
details
30pass pass FAIL The string to strip can be single quoted, outer is unquoted
details
31pass pass pass Syntax error for single quote in double quote
32pass FAIL FAIL "${undef-'c d'}" and "${foo%'c d'}" are parsed differently
detailsdetails
33pass pass pass $'' allowed within VarSub arguments
34pass pass FAIL # operator with single quoted arg (dash/ash and bash/mksh disagree, reported by Crestwave)
details
35pass pass pass / operator with single quoted arg (causes syntax error in regex in OSH, reported by Crestwave)
36pass pass pass single quotes work inside character classes
37pass pass pass comparison: :- operator with single quoted arg
38pass pass pass Right Brace as argument (similar to #702)
83 passed, 0 OK, 0 not implemented, 0 BUG, 34 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.cc0 "${empty:-}"

[osh_.cc stdout] Expected "['']\n", got "(cmd_value.Argv argv:[argv.py ''] arg_spids:[2 4])\n"

stdout:
(cmd_value.Argv argv:[argv.py ''] arg_spids:[2 4])
stderr:
Unhandled SimpleCommand
osh_.cc1 ${empty:-}

[osh_.cc stdout] Expected '[]\n', got '(cmd_value.Argv argv:[argv.py] arg_spids:[2])\n'

stdout:
(cmd_value.Argv argv:[argv.py] arg_spids:[2])
stderr:
Unhandled SimpleCommand
osh_.cc2 array with empty values

[osh_.cc stdout] Expected "['', 'x', '', '']\n", got "(cmd_value.Argv argv:[argv.py '' x '' ''] arg_spids:[18 20 20 20 20])\n"

stdout:
(cmd_value.Argv argv:[argv.py '' x '' ''] arg_spids:[18 20 20 20 20])
stderr:
Unhandled SimpleCommand
osh_.cc3 substitution of IFS character, quoted and unquoted

[osh_.cc stdout] Expected "['']\n[':']\n", got "(cmd_value.Argv argv:[argv.py ''] arg_spids:[6 8])\n(cmd_value.Argv argv:[argv.py ':'] arg_spids:[10 12])\n"

stdout:
(cmd_value.Argv argv:[argv.py ''] arg_spids:[6 8])
(cmd_value.Argv argv:[argv.py ':'] arg_spids:[10 12])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_.cc4 :-

[osh_.cc stdout] Expected "['a', 'b']\n", got '(cmd_value.Argv argv:[argv.py a b] arg_spids:[4 6 12])\n'

stdout:
(cmd_value.Argv argv:[argv.py a b] arg_spids:[4 6 12])
stderr:
Unhandled SimpleCommand
osh_.cc5 -

[osh_.cc stdout] Expected "['b']\n", got '(cmd_value.Argv argv:[argv.py b] arg_spids:[4 12])\n'

stdout:
(cmd_value.Argv argv:[argv.py b] arg_spids:[4 12])
stderr:
Unhandled SimpleCommand
osh_.cc6 Inner single quotes

[osh_.cc stdout] Expected "['b']\n", got '(cmd_value.Argv argv:[argv.py b] arg_spids:[0 2])\n'

stdout:
(cmd_value.Argv argv:[argv.py b] arg_spids:[0 2])
stderr:
Unhandled SimpleCommand
osh_.cc7 Inner single quotes, outer double quotes

[osh_.cc stdout] Expected '["\'b\'"]\n', got "(cmd_value.Argv argv:[argv.py '\\'b\\''] arg_spids:[0 2])\n"

stdout:
(cmd_value.Argv argv:[argv.py '\'b\''] arg_spids:[0 2])
stderr:
Unhandled SimpleCommand
osh_.cc8 Inner double quotes

[osh_.cc stdout] Expected "['b']\n", got '(cmd_value.Argv argv:[argv.py b] arg_spids:[0 2])\n'

stdout:
(cmd_value.Argv argv:[argv.py b] arg_spids:[0 2])
stderr:
Unhandled SimpleCommand
osh_.cc9 Inner double quotes, outer double quotes

[osh_.cc stdout] Expected "['b']\n", got '(cmd_value.Argv argv:[argv.py b] arg_spids:[0 2])\n'

stdout:
(cmd_value.Argv argv:[argv.py b] arg_spids:[0 2])
stderr:
Unhandled SimpleCommand
osh_.cc10 Multiple words: no quotes

[osh_.cc stdout] Expected "['a', 'b', 'c']\n", got '(cmd_value.Argv argv:[argv.py a b c] arg_spids:[0 2 2 2])\n'

stdout:
(cmd_value.Argv argv:[argv.py a b c] arg_spids:[0 2 2 2])
stderr:
Unhandled SimpleCommand
osh_.cc11 Multiple words: no outer quotes, inner single quotes

[osh_.cc stdout] Expected "['a b c']\n", got "(cmd_value.Argv argv:[argv.py 'a b c'] arg_spids:[0 2])\n"

stdout:
(cmd_value.Argv argv:[argv.py 'a b c'] arg_spids:[0 2])
stderr:
Unhandled SimpleCommand
osh_.cc12 Multiple words: no outer quotes, inner double quotes

[osh_.cc stdout] Expected "['a b c']\n", got "(cmd_value.Argv argv:[argv.py 'a b c'] arg_spids:[0 2])\n"

stdout:
(cmd_value.Argv argv:[argv.py 'a b c'] arg_spids:[0 2])
stderr:
Unhandled SimpleCommand
osh_.cc13 Multiple words: outer double quotes, no inner quotes

[osh_.cc stdout] Expected "['a b c']\n", got "(cmd_value.Argv argv:[argv.py 'a b c'] arg_spids:[0 2])\n"

stdout:
(cmd_value.Argv argv:[argv.py 'a b c'] arg_spids:[0 2])
stderr:
Unhandled SimpleCommand
osh_.cc14 Multiple words: outer double quotes, inner double quotes

[osh_.cc stdout] Expected "['a b c']\n", got "(cmd_value.Argv argv:[argv.py 'a b c'] arg_spids:[0 2])\n"

stdout:
(cmd_value.Argv argv:[argv.py 'a b c'] arg_spids:[0 2])
stderr:
Unhandled SimpleCommand
osh_.cc15 Multiple words: outer double quotes, inner single quotes

[osh_.cc stdout] Expected '["\'a b c\'"]\n', got "(cmd_value.Argv argv:[argv.py '\\'a b c\\''] arg_spids:[0 2])\n"

stdout:
(cmd_value.Argv argv:[argv.py '\'a b c\''] arg_spids:[0 2])
stderr:
Unhandled SimpleCommand
osh_.cc16 Mixed inner quotes

[osh_.cc stdout] Expected "['a b', 'c']\n", got "(cmd_value.Argv argv:[argv.py 'a b' c] arg_spids:[0 2 2])\n"

stdout:
(cmd_value.Argv argv:[argv.py 'a b' c] arg_spids:[0 2 2])
stderr:
Unhandled SimpleCommand
osh_.cc17 Mixed inner quotes with outer quotes

[osh_.cc stdout] Expected "['a b c']\n", got "(cmd_value.Argv argv:[argv.py 'a b c'] arg_spids:[0 2])\n"

stdout:
(cmd_value.Argv argv:[argv.py 'a b c'] arg_spids:[0 2])
stderr:
Unhandled SimpleCommand
osh_.cc18 part_value tree with multiple words

[osh_.cc stdout] Expected "['1 2', '3 45', '6 7']\n", got "(cmd_value.Argv argv:[argv.py '1 2' '3 45' '6 7'] arg_spids:[0 2 2 2])\n"

stdout:
(cmd_value.Argv argv:[argv.py '1 2' '3 45' '6 7'] arg_spids:[0 2 2 2])
stderr:
Unhandled SimpleCommand
osh_.cc19 part_value tree on RHS

[osh_.cc stdout] Expected "['1 2 3 45 6 7']\n", got "(cmd_value.Argv argv:[argv.py '1 2 3 45 6 7'] arg_spids:[21 23])\n"

stdout:
(cmd_value.Argv argv:[argv.py '1 2 3 45 6 7'] arg_spids:[21 23])
stderr:
Unhandled SimpleCommand
osh_.cc20 Var with multiple words: no quotes

[osh_.cc stdout] Expected "['a', 'b', 'c']\n", got '(cmd_value.Argv argv:[argv.py a b c] arg_spids:[5 7 7 7])\n'

stdout:
(cmd_value.Argv argv:[argv.py a b c] arg_spids:[5 7 7 7])
stderr:
Unhandled SimpleCommand
osh_.cc21 Multiple words: no outer quotes, inner single quotes

[osh_.cc stdout] Expected "['$var']\n", got "(cmd_value.Argv argv:[argv.py '$var'] arg_spids:[5 7])\n"

stdout:
(cmd_value.Argv argv:[argv.py '$var'] arg_spids:[5 7])
stderr:
Unhandled SimpleCommand
osh_.cc22 Multiple words: no outer quotes, inner double quotes

[osh_.cc stdout] Expected "['a b c']\n", got "(cmd_value.Argv argv:[argv.py 'a b c'] arg_spids:[5 7])\n"

stdout:
(cmd_value.Argv argv:[argv.py 'a b c'] arg_spids:[5 7])
stderr:
Unhandled SimpleCommand
osh_.cc23 Multiple words: outer double quotes, no inner quotes

[osh_.cc stdout] Expected "['a b c']\n", got "(cmd_value.Argv argv:[argv.py 'a b c'] arg_spids:[5 7])\n"

stdout:
(cmd_value.Argv argv:[argv.py 'a b c'] arg_spids:[5 7])
stderr:
Unhandled SimpleCommand
osh_.cc24 Multiple words: outer double quotes, inner double quotes

[osh_.cc stdout] Expected "['a b c']\n", got "(cmd_value.Argv argv:[argv.py 'a b c'] arg_spids:[5 7])\n"

stdout:
(cmd_value.Argv argv:[argv.py 'a b c'] arg_spids:[5 7])
stderr:
Unhandled SimpleCommand
osh_.cc25 Multiple words: outer double quotes, inner single quotes

[osh_.cc stdout] Expected '["\'a b c\'"]\n', got "(cmd_value.Argv argv:[argv.py '\\'a b c\\''] arg_spids:[5 7])\n"

stdout:
(cmd_value.Argv argv:[argv.py '\'a b c\''] arg_spids:[5 7])
stderr:
Unhandled SimpleCommand
osh_.cc26 No outer quotes, Multiple internal quotes

[osh_.cc stdout] Expected "['Aa', 'b', 'c', ' a b cD', 'E', 'F']\n", got "(cmd_value.Argv argv:[argv.py Aa b c ' a b cD' E F] arg_spids:[5 7 7 7 7 7 7])\n"

stdout:
(cmd_value.Argv argv:[argv.py Aa b c ' a b cD' E F] arg_spids:[5 7 7 7 7 7 7])
stderr:
Unhandled SimpleCommand
osh_.cc27 Strip a string with single quotes, unquoted

[osh_.cc stdout] Expected '["\'a", \'b\', \'c\']\n', got "(cmd_value.Argv argv:[argv.py '\\'a' b c] arg_spids:[5 7 7 7])\n"

stdout:
(cmd_value.Argv argv:[argv.py '\'a' b c] arg_spids:[5 7 7 7])
stderr:
Unhandled SimpleCommand
osh_.cc28 Strip a string with single quotes, double quoted

[osh_.cc stdout] Expected '["\'a b c "]\n', got "(cmd_value.Argv argv:[argv.py '\\'a b c '] arg_spids:[5 7])\n"

stdout:
(cmd_value.Argv argv:[argv.py '\'a b c '] arg_spids:[5 7])
stderr:
Unhandled SimpleCommand
osh_.cc29 The string to strip is space sensitive

[osh_.cc stdout] Expected "['a b ', 'a b c d']\n", got "(cmd_value.Argv argv:[argv.py 'a b ' 'a b c d'] arg_spids:[5 7 15])\n"

stdout:
(cmd_value.Argv argv:[argv.py 'a b ' 'a b c d'] arg_spids:[5 7 15])
stderr:
Unhandled SimpleCommand
osh_.cc30 The string to strip can be single quoted, outer is unquoted

[osh_.cc stdout] Expected "['a', 'b', 'a', 'b', 'c', 'd']\n", got '(cmd_value.Argv argv:[argv.py a b a b c d] arg_spids:[5 7 7 15 15 15 15])\n'

stdout:
(cmd_value.Argv argv:[argv.py a b a b c d] arg_spids:[5 7 7 15 15 15 15])
stderr:
Unhandled SimpleCommand
osh_.py32 "${undef-'c d'}" and "${foo%'c d'}" are parsed differently

[osh_.py 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[\'a b \', \'a b c d\']\n[\'a b zzz\', \'a b c d\']\n[\'a b zzz\', \'a b c d\']\n---\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:
osh_.cc32 "${undef-'c d'}" and "${foo%'c d'}" are parsed differently

[osh_.cc 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 "(cmd_value.Argv argv:[argv.py '\\'c d\\'' '\\'c d\\''] arg_spids:[0 2 10])\n(cmd_value.Argv argv:[argv.py 'c d' 'c d'] arg_spids:[18 20 28])\n---\n(cmd_value.Argv argv:[argv.py 'a b ' 'a b c d'] arg_spids:[45 47 57])\n(cmd_value.Argv argv:[argv.py 'a b zzz' 'a b c d'] arg_spids:[83 85 98])\n(cmd_value.Argv argv:[argv.py 'a b zzz' 'a b c d'] arg_spids:[111 113 128])\n"

stdout:
(cmd_value.Argv argv:[argv.py '\'c d\'' '\'c  d\''] arg_spids:[0 2 10])
(cmd_value.Argv argv:[argv.py 'c d' 'c  d'] arg_spids:[18 20 28])
---
(cmd_value.Argv argv:[argv.py 'a b ' 'a b c d'] arg_spids:[45 47 57])
(cmd_value.Argv argv:[argv.py 'a b zzz' 'a b c d'] arg_spids:[83 85 98])
(cmd_value.Argv argv:[argv.py 'a b zzz' 'a b c d'] arg_spids:[111 113 128])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_.cc34 # operator with single quoted arg (dash/ash and bash/mksh disagree, reported by Crestwave)

[osh_.cc stdout] Expected "--\n--\n-'a'-\n-'a'-\n", got "-a-\n-a-\n-'a'-\n-'a'-\n"

stdout:
-a-
-a-
-'a'-
-'a'-
stderr: