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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 29354 in the body.
You can then email your comments to 29354 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-grep <at> gnu.org:
bug#29354; Package grep. (Sun, 19 Nov 2017 00:44:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dennis <grep+user <at> mgssub.com>:
New bug report received and forwarded. Copy sent to bug-grep <at> gnu.org. (Sun, 19 Nov 2017 00:44:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dennis <grep+user <at> mgssub.com>
To: Grep Bugs <bug-grep <at> gnu.org>
Subject: GREP_OPTIONS not processed
Date: Sat, 18 Nov 2017 17:55:47 -0600
Running grep 2.20 on Debian Jessie.

Apparently grep is not processing the GREP_OPTIONS
environment variable. I have been setting the "-i" option in
there for years as that is the most useful for me. Lately it
has not been working. I have done many tests and it seems
that GREP_OPTIONS is completely ignored.




Information forwarded to bug-grep <at> gnu.org:
bug#29354; Package grep. (Sun, 19 Nov 2017 03:11:01 GMT) Full text and rfc822 format available.

Message #8 received at 29354 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Dennis <grep+user <at> mgssub.com>, 29354 <at> debbugs.gnu.org
Subject: Re: 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.




Information forwarded to bug-grep <at> gnu.org:
bug#29354; Package grep. (Tue, 21 Nov 2017 10:28:02 GMT) Full text and rfc822 format available.

Message #11 received at 29354 <at> debbugs.gnu.org (full text, mbox):

From: "Santiago R.R." <santiagorr <at> riseup.net>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: Dennis <grep+user <at> mgssub.com>, 29354 <at> debbugs.gnu.org
Subject: Re: bug#29354: GREP_OPTIONS not processed
Date: Tue, 21 Nov 2017 11:26:53 +0100
El 18/11/17 a las 19:10, Paul Eggert escribió:
> 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?

No, it hasn't. These are the patches applied to Jessie's grep:
http://sources.debian.net/src/grep/2.20-4.1/debian/patches/




Added tag(s) unreproducible. Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Tue, 31 Dec 2019 20:01:02 GMT) Full text and rfc822 format available.

Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Tue, 31 Dec 2019 20:03:02 GMT) Full text and rfc822 format available.

Notification sent to Dennis <grep+user <at> mgssub.com>:
bug acknowledged by developer. (Tue, 31 Dec 2019 20:03:02 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Dennis <grep+user <at> mgssub.com>
Cc: "Santiago R.R." <santiagorr <at> riseup.net>, 29354-done <at> debbugs.gnu.org
Subject: Re: GREP_OPTIONS not processed
Date: Tue, 31 Dec 2019 12:02:34 -0800
No further comment on this bug report for two years, and I still cannot
reproduce it. Closing the bug report.




Merged 29354 29778. Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Tue, 31 Dec 2019 20:51:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 29 Jan 2020 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 60 days ago.

Previous Next


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