Sample Header Ad - 728x90

What is the best method to test if a program exists for a shell script?

10 votes
1 answer
21495 views
I'm just curious to know how to best check if a program exists. I've seen solutions with * test * command * hash * type * which * [ Which is the best method, is there a *right* answer? What does the POSIX and LSB specs say about this?
Asked by Evan Carroll (34663 rep)
Nov 13, 2017, 03:16 AM
Last activity: Nov 13, 2017, 03:23 AM