On Monday 08 of December 2014, Elan Ruusamäe wrote: > On 08.12.2014 22:44, adwol wrote: > > commit 274761483d541b779ab9135532aecf8aadc550e8 > > Author: Adam Osuchowski <ad...@pld-linux.org> > > Date: Mon Dec 8 21:41:18 2014 +0100 > > > > - move from GREP_OPTIONS environmental variable to alias due to its > > > > obsolescence > > a reference to such "obsolescence" ? > > > -cat << EOF >$RPM_BUILD_ROOT/etc/env.d/GREP_OPTIONS > > -#GREP_OPTIONS="--binary-files=without-match --directories=skip > > --color=auto" +cat << EOF >$RPM_BUILD_ROOT/etc/shrc.d/grep.sh > > +alias grep='/bin/grep --binary-files=without-match --devices=skip > > --directories=skip --color=auto' +EOF > > +cat << EOF >$RPM_BUILD_ROOT/etc/shrc.d/grep.csh > > +alias grep '/bin/grep --binary-files=without-match --devices=skip > > --directories=skip --color=auto' > > > > EOF > > this definately is not the same thing as it was before! restore previous > behaviour by *not* enforcing such options!
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 -- Arkadiusz Miśkiewicz, arekm / ( maven.pl | pld-linux.org ) _______________________________________________ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en