Commit 01f1b2b
committed
use the correct program to determine if a program exists; type -P
We are a bash script, so type -P does precisely what people think they
want `which` to do. Except `which` doesn't exist on my system! And in
general it is non-portable -- it has many different implementations,
some of which don't return failure on failures, and others of which
don't actually, erm, check $PATH (looking at you, ~/.cshrc `which`).1 parent d107c42 commit 01f1b2b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments