view src/which.sh @ 29452:9b6b16b4007e

Added tag v9.0.0067 for changeset 057c26b5c33ad2f4b3a836a0263623637c964bf1
author Bram Moolenaar <Bram@vim.org>
date Mon, 25 Jul 2022 19:15: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