Results for var-sub-quote.test.sh

statusdashbashmkshosh
pass 33363535
ok 1001
N-I 4010
BUG 0220
FAIL 0002
total38383838
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 BUG BUG pass Strip a string with single quotes, double quoted, with unescaped '
detailsdetails
32pass BUG BUG pass The string to strip can be single quoted, outer is double quoted
detailsdetails
33N-I pass pass pass $'' allowed within VarSub arguments
details
34ok pass pass FAIL # operator with single quoted arg (dash/ash and bash/mksh disagree, reported by Crestwave)
detailsdetails
35N-I pass pass ok / operator with single quoted arg (causes syntax error in regex in OSH, reported by Crestwave)
detailsdetails
36N-I pass pass FAIL single quotes work inside character classes
detailsdetails
37pass pass pass pass comparison: :- operator with single quoted arg
139 passed, 2 OK, 5 not implemented, 4 BUG, 2 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

dash2 array with empty values

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: Syntax error: "(" unexpected
mksh2 array with empty values

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: syntax error: '(' unexpected
bash31 Strip a string with single quotes, double quoted, with unescaped '

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 2: unexpected EOF while looking for matching `''
/home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 3: syntax error: unexpected end of file
mksh31 Strip a string with single quotes, double quoted, with unescaped '

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[3]: no closing quote
bash32 The string to strip can be single quoted, outer is double quoted

stdout:
['a b ', 'a b c d']
stderr:
mksh32 The string to strip can be single quoted, outer is double quoted

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

stdout:
abc
abc
stderr:
dash34 # operator with single quoted arg (dash/ash and bash/mksh disagree, reported by Crestwave)

stdout:
--
-a-
-'a'-
--
stderr:
osh34 # operator with single quoted arg (dash/ash and bash/mksh disagree, reported by Crestwave)

[osh stdout] Expected "--\n--\n-'a'-\n-'a'-\n", got "--\n-a-\n-'a'-\n--\n"

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

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: Bad substitution
osh35 / operator with single quoted arg (causes syntax error in regex in OSH, reported by Crestwave)

stdout:
no plus or minus ''''
stderr:
  echo no plus or minus "${var//['+-']}"
                              ^
[ stdin ]:3: fatal: Error matching regex "(['+-'])": Invalid regex syntax (func_regex_first_group_match)
dash36 single quotes work inside character classes

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: Bad substitution
osh36 single quotes work inside character classes

[osh stdout] Expected 'a---b\n', got 'a[[[---]]]b\n'

stdout:
a[[[---]]]b
stderr: