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 <go...@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

Reply via email to