3 ms·
Which(1) doesn’t necessarily return a non-zero exit code if it can’t find a program. Instead, the portable alternative for scripts is command -v.
by gnubison 5y ago
Which(1) doesn’t necessarily return a non-zero exit code if it can’t find a program. Instead, the portable alternative for scripts is command -v.