Results for var-op-patsub.test.sh

statusbashmkshzshoshosh_ALT
pass 2116192222
ok 11100
N-I 01011
BUG 37500
FAIL 00022
total2525252525
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 BUG BUG pass pass Confusing unquoted slash matches bash (and ash)
detailsdetails
12pass pass pass pass pass ${v/a} is the same as ${v/a/} -- no replacement string
13pass pass pass pass pass Replacement with special chars (bug fix)
14pass BUG BUG pass pass Replace backslash
detailsdetails
15pass pass pass pass pass Replace right ]
16pass pass BUG pass pass Substitute glob characters in pattern, quoted and unquoted
details
17pass BUG pass pass pass Substitute one unicode character (UTF-8)
details
18pass pass pass FAIL FAIL Can't substitute one unicode character when LANG=C
detailsdetails
19pass pass pass pass pass ${x/^} regression
20pass pass pass pass pass \(\) in pattern (regression)
21BUG pass pass N-I N-I Extended globs! (not supported in Oil)
detailsdetailsdetails
22pass BUG pass pass pass patsub with single quotes and hyphen in character class (regression)
details
23pass pass pass FAIL FAIL patsub with [^]]
detailsdetails
24ok ok ok pass pass patsub syntax error
detailsdetailsdetails
100 passed, 3 OK, 3 not implemented, 15 BUG, 2 failed, 0 timeouts, 0 cases skipped
2 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:
mksh11 Confusing unquoted slash matches bash (and ash)

stdout:
/_/
c_c
stderr:
zsh11 Confusing unquoted slash matches bash (and ash)

stdout:
/c//c_/c/
/_/
stderr:
mksh14 Replace backslash

stdout:
[_]
[_]
[\_]
[_]
stderr:
zsh14 Replace backslash

stdout:
[_]
[_]
[\_]
[_]
stderr:
zsh16 Substitute glob characters in pattern, quoted and unquoted

stdout:
a-b
a-b
stderr:
mksh17 Substitute one unicode character (UTF-8)

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_ALT18 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:
bash21 Extended globs! (not supported in Oil)

stdout:
ext zz(z)
ext zz(z)
stderr:
osh21 Extended globs! (not supported in Oil)

stdout:
ext foo()
ext foo()
stderr:
osh_ALT21 Extended globs! (not supported in Oil)

stdout:
ext foo()
ext foo()
stderr:
mksh22 patsub with single quotes and hyphen in character class (regression)

stdout:
helloworld
stderr:
osh23 patsub with [^]]

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

stdout:
zzzzzz
stderr:
osh_ALT23 patsub with [^]]

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

stdout:
zzzzzz
stderr:
bash24 patsub syntax error

stdout:
fooz
status=0
stderr:
mksh24 patsub syntax error

stdout:
fooz
status=0
stderr:
zsh24 patsub syntax error

stdout:
fooz
status=0
stderr: