Miscellany
public shellscript v1 · immutableprogrampath=$(which whatever 2> /dev/null)if test -z "$programpath"; then echo "program doesn't exist" exitfiprogrampath=$(which whatever 2> /dev/null)if test -z "$programpath"; then echo "program doesn't exist" exitfi