bug-grep
[Top][All Lists]
Advanced

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

Re: grep . /; echo $?


From: Benno Schulenberg
Subject: Re: grep . /; echo $?
Date: Thu, 03 Nov 2005 23:56:32 +0100
User-agent: KMail/1.8.3

Charles Levert wrote:
> [...]
> src/grep: src: Is a directory
> src/grep: tests: Is a directory
> src/grep: vms: Is a directory
> 2
> ========================================
>
> Maybe some find the messages annoying?

Yes, that's why I've always used '-s' and hadn't even noticed that 
these messages were gone.

> Maybe some object to the exit code?

They shouldn't if they don't object to the messages.

(The message itself is a bit strange though: it doesn't sound like 
an error.  "Cannot read a directory" would be better.)

Benno




reply via email to

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