view src/which.sh @ 25132:aeb096819289

Added tag v8.2.3102 for changeset ba16f025f2e2eaf171c8c7581aa853f1c0d84b63
author Bram Moolenaar <Bram@vim.org>
date Sun, 04 Jul 2021 17:30:04 +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