src: use whatis instead of which

This commit is contained in:
Michael Teichgräber 2009-07-08 09:18:42 -07:00
parent bb7ff349fb
commit 4a18fa68b0
3 changed files with 15 additions and 7 deletions

View file

@ -49,7 +49,7 @@ if(~ $#* 0) usage
ifs='
'
for(i){
wi=`{which $i >[2]/dev/null}
wi=`{whatis $i >[2]/dev/null}
if(test -f $i) go $i
if not if(~ $#wi 1 && test -f $wi) go $wi
if not echo 'src: can''t find '$i