grep -P is not supported
Bug #15051 reported by
Emmanuel Rodriguez
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grep (Debian) |
Fix Released
|
Unknown
|
|||
grep (Ubuntu) |
Fix Released
|
Low
|
Martin Pitt | ||
pcre3 (Debian) |
Fix Released
|
Unknown
|
|||
pcre3 (Ubuntu) |
Fix Released
|
Medium
|
Martin Pitt |
Bug Description
The man page of grep states that the flag -P or --perl-regexp can be used to use
a PERL regular expression.
But when the command is run with either flags whe get the following error message:
grep: The -P option is not supported
Changed in grep: | |
status: | Unconfirmed → Confirmed |
Changed in grep: | |
status: | Unknown → Unconfirmed |
Changed in grep: | |
assignee: | adconrad → nobody |
Changed in grep: | |
assignee: | nobody → blueyed |
Changed in pcre3: | |
assignee: | nobody → blueyed |
status: | New → In Progress |
Changed in pcre3: | |
status: | Unknown → New |
Changed in grep: | |
status: | New → Fix Committed |
Changed in grep: | |
status: | Fix Committed → Fix Released |
Changed in pcre3 (Debian): | |
status: | New → Fix Released |
To post a comment you must log in.
PCRE support would require libpcre3, which is in /usr/lib, while grep is in
/bin. As I'm not so sure that moving libpcre to /lib (and bloating grep's
dependencies), the "fix" for this is probably just to remove references to "-P'
from the manpage.