[packages/grep] - move from GREP_OPTIONS environmental variable to alias due to its obsolescence

Arkadiusz Miśkiewicz arekm at maven.pl
Wed Dec 10 14:14:41 CET 2014


On Wednesday 10 of December 2014, Jacek Konieczny wrote:
> On 10/12/14 12:46, Arkadiusz Miśkiewicz wrote:
> > Maybe something like that would be better?
> > 
> > # cat /etc/shrc.d/grep.sh
> > if [ -r /etc/env.d/GREP_OPTIONS ]; then
> > 
> >         unset GREP_OPTIONS
> >         . /etc/env.d/GREP_OPTIONS
> >         if [ -n "$GREP_OPTIONS" ]; then
> >         
> >                 alias grep="/bin/grep $GREP_OPTIONS"
> >                 unset GREP_OPTIONS
> >         
> >         fi
> > 
> > fi
> 
> Why?

For backward compat with what we had so far.

> If anybody needs custom options to any shell command he can prepare an
> alias that suits him and his shell most.
> 
> Implementing any such non-standard behaviour in the distribution is a
> very bad idea. Not only we make the shell load ages to initialize
> features most users don't even know about, but we may find great
> fuck-ups years later, like this one:
> 
> http://seclists.org/fulldisclosure/2014/Nov/74

Fine with me. Rel 3.

> Jacek

-- 
Arkadiusz Miśkiewicz, arekm / ( maven.pl | pld-linux.org )


More information about the pld-devel-en mailing list