[Bug 1008584] Re: perl's s2p(1) produces non-equivalent perl for simple sed substitution
Ralph Corderoy
ralph at inputplus.co.uk
Sat Oct 6 12:56:07 UTC 2012
** Bug watch added: rt.perl.org/rt3/Public/ #115156
http://rt.perl.org/rt3/Public/Ticket/Display.html?id=115156
** Also affects: perl5 via
http://rt.perl.org/rt3/Public/Ticket/Display.html?id=115156
Importance: Unknown
Status: Unknown
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to perl in Ubuntu.
https://bugs.launchpad.net/bugs/1008584
Title:
perl's s2p(1) produces non-equivalent perl for simple sed substitution
Status in The Perl Programming Language:
Unknown
Status in “perl” package in Ubuntu:
New
Bug description:
Compare
$ sed 's/c*$/x/g' <<<abc
abx
$ s2p 's/c*$/x/g' | perl - <(echo abc)
abxx
$
sed's behaviour is correct for sed. The Perl that s2p(1) produces
doesn't do the equivalent substitution, instead matching zero c's and
the end of the string after the first substitution of c by x.
To manage notifications about this bug go to:
https://bugs.launchpad.net/perl5/+bug/1008584/+subscriptions
More information about the foundations-bugs
mailing list