Debian's which hunt
Debian's which hunt
Posted Oct 29, 2021 6:24 UTC (Fri) by weberm (guest, #131630)In reply to: Debian's which hunt by marcH
Parent article: Debian's which hunt
Pretty useless, isn't it?
$ which type
$ type type
type is a shell builtin
$ type -p type
$
# yes, its exit status tells me type exists, but not where
$ type ls
ls is aliased to `ls --color=auto'
# I hate that alias with a passion but sometimes forget to remove it. Not the point. It ought to tell me where the expanded alias is pulling that 'ls' in.
$ which ls
/bin/ls
$ command -v ls
alias ls='ls --color=auto'
$ command -V ls
ls is aliased to `ls --color=auto'
Nothing scratches my back just like which does.
