buggrep - Bugs: bug #16225, grep -wF bug with multiple patterns

 
 

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

bug #16225: grep -wF bug with multiple patterns

Submitted by:  None
Submitted on:  Thu 30 Mar 2006 07:42:40 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Duplicate
Privacy: PublicAssigned to: None
Open/Closed: Closed

Wed 17 May 2006 08:47:11 PM UTC, comment #2:

Thanks for the report, Markus. Indeed it has already been fixed. Probably a duplicate of bug #13920. Closing.

Julian Foad <julianfoad>
Mon 15 May 2006 09:12:24 PM UTC, comment #1:

This has apparently been fixed in CVS:

$ src/grep -wF '12
45' in.txt
12
45
12
45
$ src/grep -wFf patterns.txt in.txt
12
45
12
45

Benno Schulenberg <bens>
Thu 30 Mar 2006 07:42:40 AM UTC, original submission:

Hi,

checkout the commands below, containing 5 calls into grep. In my environment ("grep (GNU grep) 2.5.1") the two calls have wrong results:

# Begin of shell commands
echo '12
45
456 no word match for 45
12
45' > in.txt
echo '12
45' > patterns.txt
# 1) Works, emitting 12 45 12 45:
grep -wE '(12)|(45)' in.txt
# 2) Works, emitting 12 45 12 45:
grep -w '12
45' in.txt
# 3) Fails, emitting only 12 45:
grep -wF '12
45' in.txt
# 4) Works, emitting 12 45 12 45:
grep -wf patterns.txt in.txt
# 5) Fails, emitting only 12 45:
grep -wFf patterns.txt in.txt
# End of shell commands

AFICS, the symptom is that after the 1st non-word-match ("456") it stops matching other correct word-matches.

Regards,
Markus Mauhart.

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 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 17 May 2006 08:47:11 PM UTCjulianfoadStatusNone=>Duplicate
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1