Debian's which hunt
Debian's which hunt
Posted Nov 12, 2021 18:44 UTC (Fri) by rmc032 (guest, #131846)In reply to: Debian's which hunt by marcH
Parent article: Debian's which hunt
Which ironically, `type -p` is a GNU specific option and isn't POSIX compliant, as far as I can tell. I think I have the correct version here, but skimming the POSIX shell standard, it seems that the specification for the `type` utility doesn't list any options:
- OpenGroup link: https://pubs.opengroup.org/onlinepubs/9699919799/utilitie...
- Linux POSIX man page link: https://man7.org/linux/man-pages/man1/type.1p.html
Figured it was worth mentioning since a decent chunk of the article discussion is about how `command -v` is the POSIX way to find a command rather than `which`