[Bug 1581278] [NEW] * repetition operator wierdness
Jon Forsberg
1581278 at bugs.launchpad.net
Fri May 13 01:50:01 UTC 2016
Public bug reported:
Package: grep 2.16-1
Ubuntu 14.04
These two commands run against the attached file testcase.txt produce different results. First one matches, second one doesn't. They should not give different results. * should match zero or more items and in this case there is 1 item.
$ cat testcase.txt | egrep 'ppp_connected[^[:alnum:]]'
ppp_status : 'ppp_connected',
$ cat testcase.txt | egrep 'ppp_connected[^[:alnum:]]*'
** Affects: grep (Ubuntu)
Importance: Undecided
Status: New
** Attachment added: "testcase.txt"
https://bugs.launchpad.net/bugs/1581278/+attachment/4661666/+files/testcase.txt
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grep in Ubuntu.
https://bugs.launchpad.net/bugs/1581278
Title:
* repetition operator wierdness
Status in grep package in Ubuntu:
New
Bug description:
Package: grep 2.16-1
Ubuntu 14.04
These two commands run against the attached file testcase.txt produce different results. First one matches, second one doesn't. They should not give different results. * should match zero or more items and in this case there is 1 item.
$ cat testcase.txt | egrep 'ppp_connected[^[:alnum:]]'
ppp_status : 'ppp_connected',
$ cat testcase.txt | egrep 'ppp_connected[^[:alnum:]]*'
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grep/+bug/1581278/+subscriptions
More information about the foundations-bugs
mailing list