buggrep - 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

Submitted by:  None
Submitted on:  Sun 25 Sep 2005 04:31:52 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sun 25 Sep 2005 10:29:39 AM UTC, 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: <bug-grep@gnu.org>. Thanks.

Julian Foad <julianfoad>
Sun 25 Sep 2005 04:31:52 AM UTC, original submission:

Also it is mentioned in no docs but --help.

Using 2.5.1 from Debian testing.

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
Sun 25 Sep 2005 10:29:39 AM UTCjulianfoadStatusNone=>Invalid
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1