view src/which.sh @ 20746:80469f93b621

Added tag v8.2.0925 for changeset 49673325ca13df2d031a2c3822fd8ffc7883a677
author Bram Moolenaar <Bram@vim.org>
date Sun, 07 Jun 2020 19:00: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