grep - Bugs: bug #25805, fgrep or "grep -F" ...
You are not allowed to post comments on this tracker with your current authentication level.
bug #25805: fgrep or "grep -F" fails to match patterns on Windows/DOS
Submitter: | Harold Bamford <hbamford> | ||
Submitted: | Tue 10 Mar 2009 12:57:06 AM UTC | ||
Category: | None | Severity: | 3 - Normal |
Item Group: | None | Status: | None |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Closed |
Fri 04 Dec 2009 12:54:31 PM UTC, comment #2: |
Paolo Bonzini <bonzini> |
Tue 10 Mar 2009 01:00:57 AM UTC, comment #1: I attached my modified file since the verbatim comment seems to have wrapped the code to something almost unreadable.
|
Harold Bamford <hbamford> |
Tue 10 Mar 2009 12:57:06 AM UTC, original submission:
On a Windows/DOS box, the newline is actually \r\n rather than the normal Unix \n. The function Fcompile() (in src/search.c around line 500) doesn't account for this and so the \r is treated as part of the pattern. This is almost never what was intended. I checked the latest version, 2.5.4
|
Harold Bamford <hbamford> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 3 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2009-12-04 | bonzini | Open/Closed | Open | Closed | |
2009-03-10 | hbamford | Attached File | - | Added search.c, #17633 | |
2009-03-10 | hbamford | Carbon-Copy | - | Added -email is unavailable- |
Powered by Savane 3.13-758e.
Corresponding source code
Thank you for the bug report. This bug has been fixed in the
development sources, which can be downloaded using git from
git://git.sv.gnu.org/grep.git