3 ms·
This is something I've never seen. `which` (at least on the hosts I currently have access to) is its own binary `/usr/bin/which` and unrelated to the shell and
by darrenf 2y ago
This is something I've never seen. `which` (at least on the hosts I currently have access to) is its own binary `/usr/bin/which` and unrelated to the shell and its aliases or abbreviations.
`type` is a builtin on both fish and bash though, and does resolve aliases.
[edit] TIL: `zsh` has its own `which`.
- BenjiWiebe 2y agoSome distros use an alias which pipes all the aliases into 'which', which has a flag that supports reading aliases from stdin. Fedora does it. It's very convenient.