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


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Christian Kujau <lists <at> nerdbynature.de>, 19998 <at> debbugs.gnu.org
Subject: bug#19998: GREP_OPTIONS alternative?
Date: Wed, 04 Mar 2015 14:43:41 -0800
On 03/03/2015 09:55 PM, Christian Kujau wrote:
> what's the alternative to have
> some nice grep defaults and still be portable across platforms?

You can put a script like this in $HOME/bin:

#! /bin/sh
export PATH=/usr/bin
exec grep --color=auto --devices=skip "$@"

and then prepend $HOME/bin to your PATH.




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

Previous Next


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