view src/which.sh @ 29565:54893d648fd5

Added tag v9.0.0123 for changeset 7234ae4e015806f8994fe858b5e438b64f09db81
author Bram Moolenaar <Bram@vim.org>
date Sun, 31 Jul 2022 19:15: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