view src/which.sh @ 13605:10967d36a530

Added tag v8.0.1674 for changeset caa9825b04cd6a0b68dbe89670f7a4728561d821
author Christian Brabandt <cb@256bit.org>
date Sat, 07 Apr 2018 21:45:07 +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