view src/which.sh @ 29512:2f9709d835ac

Added tag v9.0.0097 for changeset 3778f9415b921bb022c38df1a11f4c0818bdb72a
author Bram Moolenaar <Bram@vim.org>
date Thu, 28 Jul 2022 13:00:09 +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