view src/which.sh @ 24429:72b285e88c65

Added tag v8.2.2754 for changeset 9299d21d1d5d05f2b7352b8ad92d62790471c06e
author Bram Moolenaar <Bram@vim.org>
date Sun, 11 Apr 2021 13:30:08 +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