milis/bin/which

3 lines
60 B
Text
Raw Normal View History

2017-12-31 20:16:06 +02:00
#!/bin/sh
type -pa "$@" | head -n 1 ; exit ${PIPESTATUS[0]}