Results for var-op-patsub.test.sh

statusoshosh_.pyosh_.cc
pass 222222
N-I 111
FAIL 222
total252525
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 LANG=C
detailsdetails
19pass pass pass ${x/^} regression
20pass pass pass \(\) in pattern (regression)
21N-I N-I N-I Extended globs! (not supported in Oil)
detailsdetailsdetails
22pass pass pass patsub with single quotes and hyphen in character class (regression)
23FAIL FAIL FAIL patsub with [^]]
detailsdetailsdetails
24pass pass pass patsub syntax error
66 passed, 0 OK, 3 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 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_.cc18 Can't substitute one unicode character when LANG=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 = 2444
	gNumDelete = 266
	gMemPos = 79808

	gNumMalloc = 293
	gNumFree = 0
	gMemPos2 = 13264
osh21 Extended globs! (not supported in Oil)

stdout:
ext foo()
ext foo()
stderr:
osh_.py21 Extended globs! (not supported in Oil)

stdout:
ext foo()
ext foo()
stderr:
osh_.cc21 Extended globs! (not supported in Oil)

stdout:
ext foo()
ext foo()
stderr:
dumb_alloc:
	gNumNew = 2233
	gNumDelete = 215
	gMemPos = 74848

	gNumMalloc = 226
	gNumFree = 0
	gMemPos2 = 12192
osh23 patsub with [^]]

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

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

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

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

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

stdout:
zzzzzz
stderr:
dumb_alloc:
	gNumNew = 1887
	gNumDelete = 142
	gMemPos = 64736

	gNumMalloc = 109
	gNumFree = 0
	gMemPos2 = 10320