Subject: bug#19998: GREP_OPTIONS alternative?

From: Paul Eggert <[email-masked]>
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.