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

Tomasz Pala gotar at polanet.pl
Fri Jan 2 11:10:50 CET 2015


On Thu, Dec 11, 2014 at 12:27:12 +0200, Elan Ruusamäe wrote:

>> $ grep alias/etc/shrc.d/*.sh
>> [...]
>> /etc/shrc.d/which.sh:alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
>> [...]
> 
> "which" needs to be alias to handle shell builtins (--read-alias option)

"which" needs to be aliased to handle shell functions as well.
But which doesn't have to handle aliases nor functions!

And don't anyone dare 'fixing' this according to man which, as zsh completion creates:

$ declare -f | wc -l
2657

-- 
Tomasz Pala <gotar at pld-linux.org>


More information about the pld-devel-en mailing list