view src/which.sh @ 26263:96a2fb08d98a

Added tag v8.2.3662 for changeset 2484d6d9616629fe51bad8a8e58199a1f3c08a04
author Bram Moolenaar <Bram@vim.org>
date Wed, 24 Nov 2021 16:15: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