#!/bin/sh

IFS=:
for i in $PATH
do
	if [ -x $i/$1 -a ! -d $i/$1 ]
	then
		echo $i/$1
		found="F"
		break
	fi
done

if [ ! $found ]
then
	echo .
fi
