News for hackers. Stuff that matters.
Re:Why “alias” is my last resort for aliases by darrenf on Wednesday March 05, 2025 @09:30AM (#43266883)
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`.

Re:Why “alias” is my last resort for aliases by BenjiWiebe on Wednesday March 05, 2025 @01:55PM (#43270662)
Some 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.