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.

Full log


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




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.