repo.or.cz
/
nyanlinux.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
first stage of new bootstrap
[nyanlinux.git]
/
utils.sh
blob
2047af328b22f9d146585cd9e759edbc18122250
1
find_in_path
()
2
{
3
r
=
4
ifs_prev
=
"
$IFS
"
5
IFS
=:
6
for
d
in
$PATH
7
do
8
if
test -x
$d
/
$1
;
then
9
IFS
=
"
$ifs_prev
"
10
r
=
$d
/
$1
11
return
0
12
fi
13
done
14
IFS
=
"
$ifs_prev
"
15
return
1
16
}
17