view src/which.sh @ 24197:3e3376cc7bb7

Added tag v8.2.2639 for changeset 1040b294bfd3c61bf0e36c96d46d56b2e407bff8
author Bram Moolenaar <Bram@vim.org>
date Mon, 22 Mar 2021 17:00:04 +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