Results for var-op-patsub.test.sh

statusoshosh_.pyosh_.cc
pass 222220
N-I 111
FAIL 224
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 FAIL Replace char class
details
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 pass pass Substitute one unicode character (UTF-8)
18FAIL FAIL FAIL Can't substitute one unicode character when LANG=C
detailsdetailsdetails
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 FAIL patsub with single quotes and hyphen in character class (regression)
details
23FAIL FAIL FAIL patsub with [^]]
detailsdetailsdetails
24pass pass pass patsub syntax error
64 passed, 0 OK, 3 not implemented, 0 BUG, 8 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

osh_.cc7 Replace char class

[osh_.cc status] Expected 0, got -6

stdout:
yy_yy_yy xx-xx-xx
stderr:
getline() error: Invalid or incomplete multibyte or wide character
terminate called after throwing an instance of 'AssertionError*'
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_.py18 Can't substitute one unicode character when LANG=C

[osh_.py 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:
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:
osh_.cc22 patsub with single quotes and hyphen in character class (regression)

[osh_.cc status] Expected 0, got -6

stdout:
++--.,<>[]
stderr:
getline() error: Invalid or incomplete multibyte or wide character
terminate called after throwing an instance of 'AssertionError*'
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'
[osh_.cc status] Expected 0, got -6

stdout:
zzzzzz
stderr:
getline() error: Invalid or incomplete multibyte or wide character
terminate called after throwing an instance of 'AssertionError*'