Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use portable "command -v" to detect installed programs
The "which" utility is not guaranteed to be installed either, and if it is, its behavior is not portable either. Conversely, the "command -v" shell builtin is required to exist in all POSIX 2008 compliant shells, and is thus guaranteed to work everywhere. Examples of open-source shells likely to be installed as /bin/sh on Linux, which implement the 11-year-old standard: ash, bash, busybox, dash, ksh, mksh and zsh. See: https://mywiki.wooledge.org/BashFAQ/081 https://unix.stackexchange.com/questions/85249/why-not-use-which-what-to-use-then/85250#85250
- Loading branch information