whiff
helper to find the first executable of a series of alternatives
Install
- All systems
-
curl cmd.cat/whiff.sh
- Debian
-
apt-get install whiff
- Ubuntu
-
apt-get install whiff
- Kali Linux
-
apt-get install whiff
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install whiff
- Raspbian
-
apt-get install whiff
- Dockerfile
- dockerfile.run/whiff
whiff
helper to find the first executable of a series of alternatives
whiff command, which takes a number of command names and returns the first one that exists and is executable. It assumes that all the arguments form a best-first list of alternatives, and only prints the path to the first alternative found in the path. If none is found, it prints an error (to stderr) and exits with an error code. A programmer interface is available in the App::Whiff module.