[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Grep --directories option
From: |
Alfred M. Szmidt |
Subject: |
Re: Grep --directories option |
Date: |
Fri, 30 May 2003 13:49:27 +0200 |
I think that on the GNU/Hurd, the read behaviour is more favorable.
It allows for scenarios like the above, without adding a lot of
noise to greps output in case you have a match with a directory
content. On systems where opening a directory always fails, the
error output of grep tends to annoy me, though. On such systems I
would prefer skip to be the default behaviour. How to
differentiate these systems I don't know, maybe a "mkdir foo; cat
foo"? Or just using host_os
cat works differently on GNU/Linux and GNU/Hurd, might be worth taking
a peek at how it does this stuff.