2 # Returns 0 (success) if the given program is runnable.
4 # This is better than using [ -x /usr/bin/program ] because it avoids
5 # the need to hardcode the program's path; it searches $PATH instead.
8 echo "usage: $0 <programname>" >&2
11 type "$1" >/dev/null 2>&1