[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep should have option to skip FIFOs

From: Stepan Kasal
Subject: Re: grep should have option to skip FIFOs
Date: Thu, 13 Jan 2005 11:05:57 +0100
User-agent: Mutt/1.4.1i


[The bug report address has changed to bug-grep, please move further
discussion there.]

On Wed, Jan 12, 2005 at 02:19:19PM -0600, Gerd Knops wrote:
> When using 'grep -r', grep 'hangs' when encountering a FIFO. Grep 
> should probably skip those, or at least offer and option to skip them.

Indeed, the option -D --devices is designed for this.  Yet the
implementation had a bug, which is has been fixed in current CVS version.

You can always use something like this:

find . -type f | xargs -r grep -H pattern

This way is much more flexible than the grep -r shortcut.

Have a nice day,
        Stepan Kasal

reply via email to

[Prev in Thread] Current Thread [Next in Thread]