grep - Bugs: bug #14634, --exclude-from does not...
You are not allowed to post comments on this tracker with your current authentication level.
bug #14634: --exclude-from does not interpolate ~ as the home directory
Submitter: | None | ||
Submitted: | Sun 25 Sep 2005 04:31:52 AM UTC | ||
Category: | None | Severity: | 3 - Normal |
Item Group: | None | Status: | Invalid |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Closed |
Sun 25 Sep 2005 10:29:39 AM UTC, comment #1: |
Julian Foad <julianfoad> |
Sun 25 Sep 2005 04:31:52 AM UTC, original submission:
Also it is mentioned in no docs but --help.
|
Anonymous |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
CC list is empty
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 2 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2005-09-25 | julianfoad | Status | None | Invalid | |
Open/Closed | Open | Closed |
Powered by Savane 3.13-4b48.
Corresponding source code
Grep does not expand "~" when it appears in a filename pattern read from the file. That is as designed: a filename pattern can contain (only) "*", "?" and "[...]" as wildcards, like in the POSIX.2 C function "fnmatch()".
On the command line, the shell expands "~" as well as "$", "{a,b}", and several other special operators that can be very useful for selecting files but are not exactly filename pattern wildcards. It is not right for Grep to duplicate this functionality. If you need more flexibility in selecting which files to search, use another method such as the "find" program which is dedicated to that purpose.
As for "--exclude-from" being undocumented except in the built-in help, yes, that is a bug. I'll fix it.
Therefore I am closing this bug report. If you need to discuss it further, please discuss it on the mailing list: <bug-grep@gnu.org>. Thanks.