view src/which.sh @ 17511:84f6b964a398

Added tag v8.1.1753 for changeset a5427e35d0fb18bbdab4a2525779b0bc7354d508
author Bram Moolenaar <Bram@vim.org>
date Fri, 26 Jul 2019 22:30:08 +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