view src/which.sh @ 24825:93958f984c68

Added tag v8.2.2950 for changeset a9ffc9154b32ab4538a254fcd8be470d9786dd42
author Bram Moolenaar <Bram@vim.org>
date Sun, 06 Jun 2021 15:15:03 +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