Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#28871 - grep 2.11 segfault with -R and --exclude-dir

Attached to Project: Arch Linux
Opened by Alexandre Chataignon (xouillet) - Sunday, 11 March 2012, 23:03 GMT
Last edited by Allan McRae (Allan) - Monday, 12 March 2012, 09:52 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Reproduce using :
ps ax | grep -R --exclude-dir=foo bar

Another effect of this bug is that
ps ax | grep -R bar
will have the effect of `grep -R bar .` (i.e. searching local files for bar and not the output of ps ax)

Additional info:
* Exists since last update of grub (grub version 2.11)
This task depends upon

Closed by  Allan McRae (Allan)
Monday, 12 March 2012, 09:52 GMT
Reason for closing:  Fixed
Additional comments about closing:  grep-2.11-2 in [testing]
Comment by Alexandre Chataignon (xouillet) - Sunday, 11 March 2012, 23:05 GMT
Typo : it's grep and not grub on the last line
Comment by Allan McRae (Allan) - Monday, 12 March 2012, 01:14 GMT
patch submitted upstream to fix segfault.
Comment by Allan McRae (Allan) - Monday, 12 March 2012, 01:20 GMT
From the 2.11 release notes:
If no file operand is given, grep -r now searches the working directory.
Formerly it ignored the -r and searched standard input nonrecursively.

Note -r is the same as -R. So that is a deliberate change.

Loading...