[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #16225] grep -wF bug with multiple patterns
From: |
anonymous |
Subject: |
[bug #16225] grep -wF bug with multiple patterns |
Date: |
Thu, 30 Mar 2006 07:42:43 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1 |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=16225>
Summary: grep -wF bug with multiple patterns
Project: grep
Submitted by: None
Submitted on: Thu 03/30/06 at 07:42
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
_______________________________________________________
Details:
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.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=16225>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #16225] grep -wF bug with multiple patterns,
anonymous <=