GNU bug report logs - #29778
grep seems to ignore GREP_OPTIONS

Previous Next

Package: grep;

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

Date: Wed, 20 Dec 2017 04:56:02 UTC

Severity: normal

Tags: unreproducible

Merged with 29354

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 29778 in the body.
You can then email your comments to 29778 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#29778; Package grep. (Wed, 20 Dec 2017 04:56: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. (Wed, 20 Dec 2017 04:56: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 seems to ignore GREP_OPTIONS
Date: Tue, 19 Dec 2017 20:29:20 -0600
For a long time I have used GREP_OPTIONS to set the
--ignore-case option. Suddenly it seems to be ignoring it.

I am running Debian Jessie and grep 2.20




Information forwarded to bug-grep <at> gnu.org:
bug#29778; Package grep. (Wed, 20 Dec 2017 05:55:01 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Dennis <grep+user <at> mgssub.com>, 29778 <at> debbugs.gnu.org
Subject: Re: bug#29778: grep seems to ignore GREP_OPTIONS
Date: Tue, 19 Dec 2017 21:54:03 -0800
On 12/19/2017 06:29 PM, Dennis wrote:
> For a long time I have used GREP_OPTIONS to set the
> --ignore-case option. Suddenly it seems to be ignoring it.

That's odd, since (though GREP_OPTIONS is obsolescent) it should work, 
with a warning. From the NEWS file:

>   The GREP_OPTIONS environment variable is now obsolescent, and grep
>   now warns if it is used.  Please use an alias or script instead.
Please send us the grep version number, how you built and installed 
grep, and give a test case showing how to reproduce the problem. In the 
long run I suggest that you also look into solving your problem without 
using GREP_OPTIONS.





Information forwarded to bug-grep <at> gnu.org:
bug#29778; Package grep. (Thu, 21 Dec 2017 23:35:02 GMT) Full text and rfc822 format available.

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

From: Bob Proulx <bob <at> proulx.com>
To: Dennis <grep+user <at> mgssub.com>
Cc: 29778 <at> debbugs.gnu.org
Subject: Re: bug#29778: grep seems to ignore GREP_OPTIONS
Date: Thu, 21 Dec 2017 16:34:31 -0700
Dennis wrote:
> For a long time I have used GREP_OPTIONS to set the
> --ignore-case option. Suddenly it seems to be ignoring it.
> 
> I am running Debian Jessie and grep 2.20

I cannot reproduce this problem on Debian Jessie 8 using grep 2.20
from the Debian distribution.  Here is my test case.

  rwp <at> rainy:~$ echo ONE | GREP_OPTIONS= grep one

  rwp <at> rainy:~$ echo ONE | GREP_OPTIONS=--ignore-case grep one
  ONE

  rwp <at> rainy:~$ echo ONE | env -i GREP_OPTIONS=--ignore-case grep one
  ONE

  rwp <at> rainy:~$ grep --version
  grep (GNU grep) 2.20

Works for me.

Perhaps you have some incompatible LC_COLLATE and LC_CTYPE variables
mixing?

Bob




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:51:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 29778 <at> debbugs.gnu.org and Dennis <grep+user <at> mgssub.com> 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.

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 89 days ago.

Previous Next


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