Merge from vendor branch CVS:
[dragonfly.git] / contrib / sendmail-8.13.8 / devtools / bin / find_in_path.sh
1 #! /bin/sh
2 #
3 # $Id: find_in_path.sh,v 8.2 1999/09/23 20:42:22 gshapiro Exp $
4 #
5 EX_OK=0
6 EX_NOT_FOUND=1
7
8 ifs="$IFS"; IFS="${IFS}:"
9 for dir in $PATH /usr/5bin /usr/ccs/bin
10 do
11         if [ -r $dir/$1 ]
12         then
13                 echo $dir/$1
14                 exit $EX_OK
15         fi
16 done
17 IFS=$ifs
18
19 exit $EX_NOT_FOUND