view src/which.sh @ 30332:462d122636b3

Added tag v9.0.0501 for changeset ddbac2551dacc3dce403cc1c00c1c354434bc44e
author Bram Moolenaar <Bram@vim.org>
date Mon, 19 Sep 2022 12:45: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