view src/which.sh @ 22723:5b7ea82bc18f

Update runtime files. Commit: https://github.com/vim/vim/commit/cb80aa2d53e56d3aba3b3c439fb467f29a750c5e Author: Bram Moolenaar <Bram@vim.org> Date: Mon Oct 26 21:12:46 2020 +0100 Update runtime files.
author Bram Moolenaar <Bram@vim.org>
date Mon, 26 Oct 2020 21:15:07 +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