view src/which.sh @ 16379:c15f3b4daf0e

Added tag v8.1.1194 for changeset 3d6b282e2d6e4446e0e8252444cf6c0e72af1146
author Bram Moolenaar <Bram@vim.org>
date Sun, 21 Apr 2019 00:15: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