GNU bug report logs - #29354
GREP_OPTIONS not processed

Previous Next

Package: grep;

Reported by: Dennis <grep+user <at> mgssub.com>

Date: Sun, 19 Nov 2017 00:44:01 UTC

Severity: normal

Tags: unreproducible

Merged with 29778

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Dennis <grep+user <at> mgssub.com>, 29354 <at> debbugs.gnu.org
Subject: bug#29354: GREP_OPTIONS not processed
Date: Sat, 18 Nov 2017 19:10:13 -0800
Dennis wrote:
> Running grep 2.20 on Debian Jessie.
> 
> Apparently grep is not processing the GREP_OPTIONS
> environment variable.

That's odd; in the master sources GREP_OPTIONS still works; it's just that it's 
deprecated and issues a warning. Perhaps Debian has changed that?

Anyway, GREP_OPTIONS is deprecated because of correctness and security issues 
caused by having environment variables change the behavior of standard commands. 
If you want your grep to default to -i, you can create a script called 'grep' 
that invokes /usr/bin/grep -i, and put your script in your PATH before /usr/bin.




This bug report was last modified 5 years and 144 days ago.

Previous Next


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