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: Fri, 04 Nov 2005 16:30:02 +0100
User-agent: KMail/1.8.3

Andreas Schwab wrote:
> Benno Schulenberg <address@hidden> writes:
> > (The message itself is a bit strange though: it doesn't sound
> > like an error.  "Cannot read a directory" would be better.)
>
> The message is just what strerror(EISDIR) returns, which has no
> information about the actual operation that failed.

But grep has this information: it knows what it was trying to do, so 
it could replace the standard message with something more specific.

Benno




reply via email to

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