bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: grep: default file if -r is used


From: schwinge-list-gnu-utils-bug
Subject: Re: grep: default file if -r is used
Date: Fri, 11 Jun 2004 11:51:35 +0200
User-agent: Mutt/1.4.2.1i

On Fri, Jun 11, 2004 at 10:59:24AM +0200, Stepan Kasal wrote:
> On Fri, Jun 11, 2004 at 10:09:43AM +0200, Koblinger Egmont wrote:
> > (You'll hate this one but I ask: maybe '-r' would default to '.' only if
> > stdin happens to be a terminal... this way old scripts keep on working...
> > Okay, forget it if you don't like it, it _is_ ugly.)
> 
> Well, I won't say it isn't ugly, but I'm going to seriously consider this.
> 
> grep's --colour=auto option already tries to guess whether it writes to
> a terminal or not.

... and fails if I do 'grep --colour=auto ... | tail -n 1' or similar
things.


I'd suggest not to implement the dicussed functionality - Egmont could
easily use a shell function or shell script to get this functionality.


Regards,
 Thomas




reply via email to

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