view src/which.sh @ 11584:25b2326c3b3c

Added tag v8.0.0674 for changeset ef8b233f07aed80a4a6ac385c72e16fcd6d75701
author Christian Brabandt <cb@256bit.org>
date Sun, 25 Jun 2017 13:45:04 +0200
parents 3fc0f57ecb91
children
line wrap: on
line source

#! /bin/sh
#
# which.sh -- find where an executable is located.  It's here because the
# "which" command is not supported everywhere.  Used by Makefile.

IFS=":"
for ac_dir in $PATH; do
	if test -f "$ac_dir/$1"; then
		echo "$ac_dir/$1"
		break
	fi
done