grep - Bugs: bug #17623, add option to grep -R to NOT...
You are not allowed to post comments on this tracker with your current authentication level.
bug #17623: add option to grep -R to NOT follow symlinks to directory
Submitter: | Emmanuel Viennet <emmanuelito> | ||
Submitted: | Wed 06 Sep 2006 07:09:24 AM UTC | ||
Votes: | 26 | ||
Category: | None | Severity: | 2 - Minor |
Item Group: | None | Status: | Fixed |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Closed |
Jump to the original submission
Thu 15 Mar 2012 09:58:15 PM UTC, comment #7: |
Paul Eggert <eggert> |
Tue 03 Jan 2012 11:32:41 PM UTC, comment #6: This would break compatibility, but distinguishing based on case would be a simple option: -r/-R. For example, grep in Heirloom seems to be doing that. Afaict, for grep 2.7 -R, -r, --recursive are all the same.
|
Alexei Colin <alexei> |
Tue 16 Mar 2010 07:47:09 PM UTC, comment #5: Any chance of an update? This would be really amazingly helpful.
|
Richard Neill <richardneill> |
Wed 23 Dec 2009 07:55:25 AM UTC, comment #4: What about --[no-]dereference-symlink-to-dir (can be shortened to --[no-]dereference since there's no ambiguous option)? cp's -H could become --dereference-symlink-to-dir=cmdline (using an optional argument).
|
Paolo Bonzini <bonzini> |
Tue 22 Dec 2009 10:18:19 PM UTC, comment #3: Use the same option name as in coreutils?
|
Karl Berry <karl> |
Tue 22 Dec 2009 08:31:02 PM UTC, comment #2: Hi Paolo,
|
Jim Meyering <meyering> |
Tue 22 Dec 2009 09:12:32 AM UTC, comment #1:
|
Paolo Bonzini <bonzini> |
Wed 06 Sep 2006 07:09:24 AM UTC, original submission:
|
Emmanuel Viennet <emmanuelito> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 26 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 7 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2012-03-15 | eggert | Status | None | Fixed | |
Open/Closed | Open | Closed | |||
2012-03-15 | musiphil | Carbon-Copy | - | Added musiphil | |
2012-01-03 | alexei | Carbon-Copy | - | Added alexei | |
2011-09-18 | gregor | Carbon-Copy | - | Added gregor | |
2009-12-23 | bonzini | Severity | 3 - Normal | 2 - Minor | |
Summary | grep -R should NOT follow symlinks | add option to grep -R to NOT follow symlinks to directory |
Powered by Savane 3.13-758e.
Corresponding source code
I installed a patch for this, so that -r does not follow symlinks or read devices (but -R still does, for those who prefer this):
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=c6e3ea61d9f08aa0128a0eb13d31a2fbad376f99
So I'm closing the bug report as 'fixed'; if there's a problem with the solution, please let me know and we can reopen the bug.