view src/which.sh @ 34657:75a8299ca1ea

Added tag v9.1.0212 for changeset 3b29a2cdbf747685e9f7f8b51c2f05d9dccfa490
author Christian Brabandt <cb@256bit.org>
date Wed, 27 Mar 2024 11:00:08 +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