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

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

Re: grep patch


From: Bernhard Rosenkraenzer
Subject: Re: grep patch
Date: Fri, 18 Jan 2002 14:15:29 +0100 (CET)

On Thu, 17 Jan 2002, Stepan Koltsov wrote:

> This is diff, that add option --fake-filename= for grep 2.5f, it prints
> specified filename instead of real.

Thanks. I'm committing a variant of your patch to CVS.

To the people claiming it's not necessary and people should just use sed:
Yes, people can just use sed, but having the feature doesn't hurt (it's
not like it requires 10 kB of code that will bloat the whole system), and
piping output to sed automatically disables some features (--color).

I think the option (which I've renamed to --label for compatibility with
diff) makes sense e.g. for use in zgrep, bzgrep and the likes.

LLaP
bero


-- 
This message is provided to you under the terms outlined at
http://www.bero.org/terms.html




reply via email to

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