Bug 8253
Summary: | Perl regexp engine broken with m//x | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Adam Spiers <redhat> |
Component: | perl | Assignee: | Crutcher Dunnavant <crutcher> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 6.2 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2000-04-27 11:12:25 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Adam Spiers
2000-01-07 02:47:32 UTC
This is still not fixed in 6.2. Please attend to this, as it is quite a severe problem, and has not even been looked at since I submitted it 3.5 months ago. Might this just be a typo in the regexp? perl -wle '"foo" =~ /(?-x:.*) /x or die "huh?!"' Does in fact die on RH-Linux, but also on Solaris and windoze. However, perl -wle '"foo" =~ /(?-x:.*)/x or die "huh?!"' (No space before the slash) Does what is expected. This works in 5.6.0-4 from Rawhide, while dies on RH6.2 version. No, it's not a typo in the regex. In fact that extra space is the whole point of the bug, because it /should/ be ignored by Perl because of the x switch at the end of the m//. The bug is that the space isn't ignored because the (?-x modifier acts /outside/ its enclosing parentheses for some reason. Looks like it's fixed in more recent Perls then. |