[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #14634] --exclude-from does not interpolate ~ as the home directory
From: |
Julian Foad |
Subject: |
[bug #14634] --exclude-from does not interpolate ~ as the home directory |
Date: |
Sun, 25 Sep 2005 10:29:39 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511 |
Update of bug #14634 (project grep):
Status: None => Invalid
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
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: <address@hidden>. Thanks.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=14634>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/