view src/which.sh @ 18409:7ca16569d89d

Added tag v8.1.2198 for changeset 50c0a9fb07aee6b5b7d896b3fdb6977ae5be980a
author Bram Moolenaar <Bram@vim.org>
date Mon, 21 Oct 2019 23:15:04 +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