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

Submitter:  Victor Porton <porton>
Submitted:  Wed 28 May 2008 01:17:31 AM UTC
   
 
Category:  None Severity:  1 - Wish
Item Group:  None Status:  Duplicate
Privacy:  Public Assigned 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>
Group 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>

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Date Changed by Updated Field Previous Value => Replaced by
    2009-12-23 bonzini StatusNone Duplicate
        Open/ClosedOpen Closed
    2009-12-04 bonzini Severity3 - Normal 1 - Wish

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code