This question already has an answer here:
- Why not use “which”? What to use then? 4 answers
I'm just curious to know how to best check if a program exists. I've seen solutions with
Which is the best method, is there a right answer? What does the POSIX and LSB specs say about this?