* repetition operator wierdness

Bug #1581278 reported by Jon Forsberg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grep (Ubuntu)
New
Undecided
Unassigned

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:]]*'

Revision history for this message
Jon Forsberg (jon-orebro) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.