view src/which.sh @ 27119:ae6cdc5f24f4

Added tag v8.2.4088 for changeset 2f854597399f933fbc557557c42ad9ee0e3d7046
author Bram Moolenaar <Bram@vim.org>
date Fri, 14 Jan 2022 13:00:08 +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