repo.or.cz
/
dragonfly.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
sendmail: Update vendor branch to v8.14.4
[dragonfly.git]
/
contrib
/
sendmail-8.14
/
devtools
/
bin
/
find_in_path.sh
blob
e64ceea99ab84cbf7e7dbb797c56f9ffee98ed89
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
/
5
bin
/
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