src: use whatis instead of which
This commit is contained in:
parent
bb7ff349fb
commit
4a18fa68b0
3 changed files with 15 additions and 7 deletions
2
bin/src
2
bin/src
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue