milis/bin/which

3 lines
60 B
Plaintext
Raw Normal View History

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