#!/bin/bash EXIT_STATUS=0 for i in "$@"; do type -Pp $i 2>/dev/null||EXIT_STATUS=1 done exit $EXIT_STATUS