view src/which.sh @ 10659:6e900b249f71

Added tag v8.0.0219 for changeset 77d66e9ac0ab1d96e0e31bde1645c1167a273848
author Christian Brabandt <cb@256bit.org>
date Sun, 22 Jan 2017 18:45:05 +0100
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