Results for var-op-patsub.test.sh

statusbashmkshzshosh
pass 14111216
N-I 0100
BUG 2440
total16161616
casebashmkshzshoshdescription
0pass pass pass pass Pattern replacement
1pass BUG pass pass Pattern replacement on unset variable
details
2pass pass pass pass Global Pattern replacement with /
3pass pass pass pass Left Anchored Pattern replacement with #
4pass pass pass pass Right Anchored Pattern replacement with %
5pass pass pass pass Replace fixed strings
6pass pass pass pass Replace is longest match
7pass N-I pass pass Replace char class
details
8pass pass pass pass Replace hard glob
9BUG BUG BUG pass Pattern replacement ${v/} is not valid
detailsdetailsdetails
10BUG BUG BUG pass Pattern replacement ${v//} is not valid
detailsdetailsdetails
11pass pass pass pass ${v/a} is the same as ${v/a/} -- no replacement string
12pass pass pass pass Replacement with special chars (bug fix)
13pass BUG BUG pass Replace backslash
detailsdetails
14pass pass pass pass Replace right ]
15pass pass BUG pass Substitute glob characters in pattern, quoted and unquoted
details
53 passed, 0 OK, 1 not implemented, 10 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

mksh1 Pattern replacement on unset variable

stdout:
--
status=0
--
stderr:
mksh7 Replace char class

stdout:
xx_xx_xx xx_xx_xx
stderr:
bash9 Pattern replacement ${v/} is not valid

stdout:
-abcde-
status=0
stderr:
mksh9 Pattern replacement ${v/} is not valid

stdout:
-abcde-
status=0
stderr:
zsh9 Pattern replacement ${v/} is not valid

stdout:
-abcde-
status=0
stderr:
bash10 Pattern replacement ${v//} is not valid

stdout:
-a/b/c-
status=0
stderr:
mksh10 Pattern replacement ${v//} is not valid

stdout:
-a/b/c-
status=0
stderr:
zsh10 Pattern replacement ${v//} is not valid

stdout:
-a/b/c-
status=0
stderr:
mksh13 Replace backslash

stdout:
[_]
[_]
[\_]
[_]
stderr:
zsh13 Replace backslash

stdout:
[_]
[_]
[\_]
[_]
stderr:
zsh15 Substitute glob characters in pattern, quoted and unquoted

stdout:
a-b
a-b
stderr: