GNU bug report logs - #19998
GREP_OPTIONS alternative?

Previous Next

Package: grep;

Reported by: Christian Kujau <lists <at> nerdbynature.de>

Date: Wed, 4 Mar 2015 07:09:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #31 received at 19998-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Christian Kujau <lists <at> nerdbynature.de>
Cc: 19998-done <at> debbugs.gnu.org
Subject: Re: bug#19998: GREP_OPTIONS alternative?
Date: Wed, 11 Mar 2015 15:33:15 -0700
Christian Kujau wrote:
> Without GREP_OPTIONS, one has to
>
> 1) Write a script for each grep variant (fgrep, zgrep, egrep, etc.)
> 2) put $HOME/bin in $PATH

No, you don't need to write a script for each grep variant.  You need to write a 
script only for 'grep'.  That's because fgrep etc. invoke grep.

> Even GNU/tar has TAR_OPTIONS

Yes, and on my list of things to do is to remove TAR_OPTIONS as well, for the 
same reasons that GREP_OPTIONS should be removed.  (You have been warned. :-) 
It's too error-prone to have fundamental utilities' behavior depend on settings 
of random environment variables.




This bug report was last modified 10 years and 134 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.