view src/which.sh @ 17581:78604ed0276c

Added tag v8.1.1787 for changeset d5e5d0fc3fa8cb3c550043714f96c005b45e7338
author Bram Moolenaar <Bram@vim.org>
date Thu, 01 Aug 2019 21:15: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