Is there a way to detect if an external command exists (i.e. wget, svn)?
More specifically today, i was trying to run one of my scripts i wrote and the person didn't have wget
or svn installed.
The script just downloads a file extracts it or uses svn to export the trunk.
wget
andsvn
are not functions, they're external commands (also called utilities, which includes built-in utilities). Functions are defined by shell code and live inside the current shell instance. External commands are stored in executable files and can be implemented in any language. – Gilles Sep 1 '11 at 23:53command-not-found
package. – Faheem Mitha Sep 4 '11 at 1:10