buggrep - Bugs: bug #11017, --exclude should also relate to...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #11017: --exclude should also relate to directories

Submitter:  Stepan Kasal <kasal>
Submitted:  Tue 16 Nov 2004 09:09:48 AM UTC
Votes: 145
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Wont Fix
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Jump to the original submission

Sun 07 Oct 2007 02:36:57 PM UTC, comment #6: 

Making --exclude apply to directory names would break systems that rely on the existing behaviour.

A new option has been introduced in grep-2.5.3, --exclude-dir that applies a pattern only to directory names.

Tony Abou-Assaleh <taa>
Group administrator
Wed 27 Jun 2007 02:31:37 PM UTC, comment #5: 

Man, I just realized that I still have my own build of grep on my box, since december 2005.  Can we move on and apply that patch once and for all?

This would be useful for a lot of people, no matter if you can reproduce the same with find/xargs, etc.  Pragmatism should rule: the common case should have an option for it.


Martin Blais <blais>
Sun 18 Dec 2005 07:27:42 PM UTC, comment #4: 

This patch would be great, it is quite an annoyance when grepping in subversion directories without it...

Martin Blais <blais>
Thu 24 Feb 2005 02:24:54 PM UTC, comment #3: 

I gave it a shot, changing really little in fact. I hope I am not missing anything, even though I've tested the patch to my best.

I would like to point out that should this patch be included, so would the isdir1 function in lib/savedir.c remain without references. If no one uses libgreputils, maybe it could be removed?

Claudio

Anonymous
Tue 16 Nov 2004 09:11:53 AM UTC, comment #2: 

Well I mean patch #3521!

Stepan Kasal <kasal>
Group Member
Tue 16 Nov 2004 09:11:17 AM UTC, comment #1: 

Sorry, I meant the (rejected) patch # 3521.

(Cut'n'paste plays tricks on me.)

Stepan Kasal <kasal>
Group Member
Tue 16 Nov 2004 09:09:48 AM UTC, original submission:  

When run as

grep -r --exclude=.svn pattern .

grep should skip subdirectories named .svn .

See also the (rejected) patch #10537.

Stepan Kasal <kasal>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #2612:  grep_exclude.patch added by None (1KiB - application/octet-stream - apply exclusions and inclusions to directories too)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by taa (Posted a comment)
  • -email is unavailable- added by blais (Posted a comment)
  •  

    There are 145 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 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-10-07 taa StatusNone Wont Fix
        Open/ClosedOpen Closed
    2006-08-30 pcl Carbon-Copy- Added -email is unavailable-
        Carbon-Copy- Added pcl
    2006-08-30 mprudhom Carbon-Copy- Added mprudhom
    2006-03-15 n1lwi Carbon-Copy- Added n1lwi
    2006-02-10 coppit Carbon-Copy- Added coppit
    2005-12-18 blais Carbon-Copy- Added blais
    2005-02-24 None Attached File- Added grep_exclude.patch, #2234

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code