which 60 B

123
  1. #!/bin/sh
  2. type -pa "$@" | head -n 1 ; exit ${PIPESTATUS[0]}