Results for var-op-patsub.test.sh

statusoshosh-cpp
pass 2222
FAIL 22
total2424
caseoshosh-cppdescription
0pass pass Pattern replacement
1pass pass Pattern replacement on unset variable
2pass pass Global Pattern replacement with /
3pass pass Left Anchored Pattern replacement with #
4pass pass Right Anchored Pattern replacement with %
5pass pass Replace fixed strings
6pass pass Replace is longest match
7pass pass Replace char class
8pass pass Replace hard glob
9pass pass Pattern replacement ${v/} is not valid
10pass pass Pattern replacement ${v//} is not valid
11pass pass Confusing unquoted slash matches bash (and ash)
12pass pass ${v/a} is the same as ${v/a/} -- no replacement string
13pass pass Replacement with special chars (bug fix)
14pass pass Replace backslash
15pass pass Replace right ]
16pass pass Substitute glob characters in pattern, quoted and unquoted
17pass pass Substitute one unicode character (UTF-8)
18FAIL FAIL Can't substitute one unicode character when LC_ALL=C
detailsdetails
19pass pass ${x/^} regression
20pass pass \(\) in pattern (regression)
21pass pass patsub with single quotes and hyphen in character class (regression)
22FAIL FAIL patsub with [^]]
detailsdetails
23pass pass patsub syntax error
44 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

osh18 Can't substitute one unicode character when LC_ALL=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-cpp18 Can't substitute one unicode character when LC_ALL=C

[osh-cpp 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:
osh22 patsub with [^]]

[osh stdout] Expected 'ab^cd^\n', got 'zzzzzz\n'

stdout:
zzzzzz
stderr:
osh-cpp22 patsub with [^]]

[osh-cpp stdout] Expected 'ab^cd^\n', got 'zzzzzz\n'

stdout:
zzzzzz
stderr: