[Top][All Lists]
[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
- grep: default file if -r is used, Koblinger Egmont, 2004/06/10
- Re: grep: default file if -r is used, Stepan Kasal, 2004/06/10
- Re: grep: default file if -r is used, Paul Eggert, 2004/06/10
- Re: grep: default file if -r is used, Paul Jarc, 2004/06/10
- Re: grep: default file if -r is used, Stepan Kasal, 2004/06/11
- Re: grep: default file if -r is used, Koblinger Egmont, 2004/06/11
- Re: grep: default file if -r is used, Stepan Kasal, 2004/06/11
- Re: grep: default file if -r is used, Koblinger Egmont, 2004/06/11
- Re: grep: default file if -r is used, Stepan Kasal, 2004/06/11
- Re: grep: default file if -r is used,
schwinge-list-gnu-utils-bug <=
- Re: grep: default file if -r is used, Karl Berry, 2004/06/11
- Re: grep: default file if -r is used, Paul Jarc, 2004/06/11
- Re: grep: default file if -r is used, Koblinger Egmont, 2004/06/11
- Re: grep: default file if -r is used, Thomas Schwinge, 2004/06/11
- Re: grep: default file if -r is used, Paul Eggert, 2004/06/11
- Re: grep: default file if -r is used, Stepan Kasal, 2004/06/14
- Re: grep: default file if -r is used, Charlie Gordon, 2004/06/12
- Re: grep: default file if -r is used, Paul Jarc, 2004/06/12