var-sub-quote () { sh-spec spec/var-sub-quote.test.sh ${REF_SHELLS[@]} $OSH_LIST "$@" } var-sub-quote: spec test case results

Results for var-sub-quote.test.sh

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

Details on runs that didn't PASS

dash2 array with empty values

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
mksh2 array with empty values

stdout:
stderr: 
mksh: <stdin>[1]: syntax error: '(' unexpected
mksh31 Syntax error for single quote in double quote

stdout:
stderr: 
mksh: <stdin>[3]: no closing quote
dash32 "${undef-'c d'}" and "${foo%'c d'}" are parsed differently

stdout:
["'c d'", "'c  d'"]
['c d', 'c  d']
---
['a b ', 'a b c d']
stderr:
dash33 $'' allowed within VarSub arguments

stdout:
abc
abc
stderr:
dash35 / operator with single quoted arg (causes syntax error in regex in OSH, reported by Crestwave)

stdout:
stderr: 
dash: 2: Bad substitution
dash36 single quotes work inside character classes

stdout:
stderr: 
dash: 2: Bad substitution
bash38 Right Brace as argument (similar to #702)

stdout:
}
}
'}'
}
stderr: