|
|
Log in / Subscribe / Register

Debian's which hunt

Debian's which hunt

Posted Oct 28, 2021 16:21 UTC (Thu) by smoogen (subscriber, #97)
Parent article: Debian's which hunt

I had not heard of command -v before I wanted to see what it was like on Fedora/CentOS. On my older CentOS box I got:

$ command -v which
which
$ which which
which ()
{ 
    ( alias;
    eval ${which_declare} ) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot "$@"
}

on a newer Fedora box, I got

$ command -v which
alias which='(alias; declare -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot'
which which
alias which='(alias; declare -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot'
	/usr/bin/which

Both are based off of https://savannah.gnu.org/projects/which/ 2.21 so I wonder how much it will break Fedora to change also.


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds