milis/bin/which

3 lines
60 B
Bash
Executable File

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