Hacker News new | ask | show | jobs
by gnubison 1681 days 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.