[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep -R hangs if applied upon directory that contains pipe file
From: |
Bert Wesarg |
Subject: |
Re: grep -R hangs if applied upon directory that contains pipe file |
Date: |
Sun, 10 May 2009 10:26:27 +0200 |
On Sat, May 9, 2009 at 20:38, Elmar Stellnberger <address@hidden> wrote:
> grep -R should only open regular files, no pipes, no devices, because
> otherwise grep -R will hang on these files.
>
> i.e. > grep -R seekitem .
> is expected to behave like
>> find . -type f -exec grep seekitem {} +
>
> reproduce by:
>> mkfifo hug
>> grep -R seek .
See the --device= option.
Bert