Results for var-op-patsub.test.sh

statusbashmkshzshoshosh_ALT
pass 1612141717
N-I 01000
BUG 25400
FAIL 00011
total1818181818
casebashmkshzshoshosh_ALTdescription
0pass pass pass pass pass Pattern replacement
1pass BUG pass pass pass Pattern replacement on unset variable
details
2pass pass pass pass pass Global Pattern replacement with /
3pass pass pass pass pass Left Anchored Pattern replacement with #
4pass pass pass pass pass Right Anchored Pattern replacement with %
5pass pass pass pass pass Replace fixed strings
6pass pass pass pass pass Replace is longest match
7pass N-I pass pass pass Replace char class
details
8pass pass pass pass pass Replace hard glob
9BUG BUG BUG pass pass Pattern replacement ${v/} is not valid
detailsdetailsdetails
10BUG BUG BUG pass pass Pattern replacement ${v//} is not valid
detailsdetailsdetails
11pass pass pass pass pass ${v/a} is the same as ${v/a/} -- no replacement string
12pass pass pass pass pass Replacement with special chars (bug fix)
13pass BUG BUG pass pass Replace backslash
detailsdetails
14pass pass pass pass pass Replace right ]
15pass pass BUG pass pass Substitute glob characters in pattern, quoted and unquoted
details
16pass BUG pass pass pass Substitute one unicode character (UTF-8)
details
17pass pass pass FAIL FAIL Can't substitute one unicode character when LANG=C
detailsdetails
76 passed, 0 OK, 1 not implemented, 11 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

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:
mksh16 Substitute one unicode character (UTF-8)

stdout:
_μ_ and _μ_
_μ_ and _μ_
_μ_ and _μ_
stderr:
osh17 Can't substitute one unicode character when LANG=C

[osh stdout] Expected '_\xce\xbc_ and _\xce\xbc_\n_\xce\xbc_ and _\xce\xbc_\n_\xce\xbc_ and _\xce\xbc_\n', got 'foo and foo\nfoo and _\xce\xbc_\n_\xce\xbc_ and foo\n'

stdout:
foo and foo
foo and _μ_
_μ_ and foo
stderr:
osh_ALT17 Can't substitute one unicode character when LANG=C

[osh_ALT stdout] Expected '_\xce\xbc_ and _\xce\xbc_\n_\xce\xbc_ and _\xce\xbc_\n_\xce\xbc_ and _\xce\xbc_\n', got 'foo and foo\nfoo and _\xce\xbc_\n_\xce\xbc_ and foo\n'

stdout:
foo and foo
foo and _μ_
_μ_ and foo
stderr: