view src/which.sh @ 34364:f5d16cbbf2d5

Added tag v9.1.0112 for changeset 3b654f4462c51e1737b48fb73401f60b21b832c8
author Christian Brabandt <cb@256bit.org>
date Thu, 15 Feb 2024 20:30: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