Results for var-op-patsub.test.sh

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

Details on runs that didn't PASS

osh_.py17 Substitute one unicode character (UTF-8)

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

stdout:
_μ_ and _μ_
_μ_ and _μ_
_μ_ and _μ_
stderr:
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_.cc18 Can't substitute one unicode character when LC_ALL=C

[osh_.cc 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:
dumb_alloc:
	gNumNew = 2464
	gNumDelete = 268
	gMemPos = 81984

	gNumMalloc = 290
	gNumFree = 0
	gMemPos2 = 13216
osh22 patsub with [^]]

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

stdout:
zzzzzz
stderr:
osh_.py22 patsub with [^]]

[osh_.py stdout] Expected 'ab^cd^\n', got 'zzzzzz\n'

stdout:
zzzzzz
stderr:
osh_.cc22 patsub with [^]]

[osh_.cc stdout] Expected 'ab^cd^\n', got 'zzzzzz\n'

stdout:
zzzzzz
stderr:
dumb_alloc:
	gNumNew = 1955
	gNumDelete = 142
	gMemPos = 66848

	gNumMalloc = 110
	gNumFree = 0
	gMemPos2 = 10336