buggrep - Bugs: bug #23401, Add option to skip symlinks

 
 

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

bug #23401: Add option to skip symlinks

Submitted by:  Victor Porton <porton>
Submitted on:  Wed 28 May 2008 01:17:31 AM UTC  
 
Category: NoneSeverity: 1 - Wish
Item Group: NoneStatus: Duplicate
Privacy: PublicAssigned to: None
Open/Closed: Closed

Wed 23 Dec 2009 10:14:34 AM UTC, comment #2:

Duplicate of bug 17623

Paolo Bonzini <bonzini>
Sun 01 Jun 2008 04:21:34 AM UTC, comment #1:

> I suggest to add option which if specified in addition to -r would prevent
> grep from processing symlinks.
> It is a headache that "grep -r /etc/" processes all symlinks in this folder.


This is really a better case to use find.

find /etc -type f -exec grep PATTERN {} +

That command already provides this functionality, is standard, and works with all of the utilities. Adding all of 'find's behavior to grep is undesirable duplication.

Bob Proulx <rwp>
Project Member
Wed 28 May 2008 01:17:31 AM UTC, original submission:

I suggest to add option which if specified in addition to -r would prevent grep from processing symlinks.

It is a headache that "grep -r /etc/" processes all symlinks in this folder.

Victor Porton <porton>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bonzini (Updated the item)
  • -unavailable- added by rwp (Posted a comment)
  • -unavailable- added by porton (Submitted the item)
  •  

    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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 23 Dec 2009 10:14:34 AM UTCbonziniStatusNone=>Duplicate
      Open/ClosedOpen=>Closed
    Fri 04 Dec 2009 07:23:24 PM UTCbonziniSeverity3 - Normal=>1 - Wish

    Back to the top


    Powered by Savane 3.1-cleanup1