Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > 6c8b012174e54e5017a465ccbeb274ce > files > 43

bash-doc-4.3-48.2.mga5.i586.rpm

inpath()
{
	local PROG
	path=$(echo $PATH | sed 's/^:/.:/
				s/::/:.:/g
				s/:$/:./
				s/:/ /g')

	for x in $path
	do
		[ -x $x/$1 ] && { PROG=$x/$1; break; }
	done
	[ -n "$PROG" ]
}