buggrep - Bugs: bug #12404, egrep \> doesn't work

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #12404: egrep \> doesn't work

Submitted by:  None
Submitted on:  Mon 21 Mar 2005 09:19:04 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Works For Me
Privacy: PublicAssigned to: Stepan Kasal <kasal>
Open/Closed: Closed

Mon 21 Mar 2005 10:09:52 AM UTC, comment #1:

I tried this

echo 'a b' | egrep '\>'
echo 'ab' | egrep '\>'

in both cases the line was printed. I don't know why your copy of grep doesn't work. It's possible that the problem is in the libc against which the grep is linked.

Stepan Kasal <kasal>
Project MemberIn charge of this item.
Mon 21 Mar 2005 09:19:04 AM UTC, original submission:

When grep is not linked against PCRE, the \> metacharacter combination to anchor the expression to the end of a word does not function as expected (and as documented in the Info documentation section 5) when invoked as egrep.

grep \< works
grep \> works
egrep \< works
egrep \> doesn't work

When attempting to specify a pattern including "\>" with egrep, I get no matches. I'm unsure whether this is literally attempting to match a ">", but it certainly doesn't anchor the preceeding expression to the end of a word.

While \> is not strictly a POSIX compliant extended regular expression, it's very useful and isn't a POSIX compliant basic regular expression either!

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 21 Mar 2005 10:09:52 AM UTCkasalStatusNone=>Works For Me
  Assigned toNone=>kasal
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1