Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 113640

Summary: "grep -D skip" doesn't skip FIFOs.
Product: Gentoo Linux Reporter: Ingo van Lil <inguin>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ingo van Lil 2005-11-26 10:42:18 UTC
Contrary to the description in the grep man page the option "-D skip" doesn't
make grep skip FIFOs (named pipes). The bug has been fixed in grep CVS more than
a year ago, but unfortunately they have not released a new version for about the
same time.

The patch for this bug can be found at
http://lists.gnu.org/archive/html/grep-commit/2004-11/msg00095.html. I'd
appreciate it if it could be added to the Gentoo ebuild for grep 2.5.1.


Reproducible: Always
Steps to Reproduce:
1. mkfifo fifo
2. grep -D skip pattern fifo
3.

Actual Results:  
grep tries to open the FIFO and blocks.

Expected Results:  
grep should identify the file as FIFO and skip it (as described in the man page).
Comment 1 SpanKY gentoo-dev 2005-11-26 12:09:12 UTC
thanks, added to grep-2.5.1-r9