view src/which.sh @ 29762:13b522cb29d9

Added tag v9.0.0220 for changeset 0cea0cdcce92224e4c881026adc66eedcf816b96
author Bram Moolenaar <Bram@vim.org>
date Tue, 16 Aug 2022 19:00:05 +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