* repetition operator wierdness
Bug #1581278 reported by
Jon Forsberg
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[
ppp_status : 'ppp_connected',
$ cat testcase.txt | egrep 'ppp_connected[
To post a comment you must log in.