view src/which.sh @ 24389:9b13404bbb6f

Added tag v8.2.2734 for changeset 72f3e40f046c6de61fe3bfb60391c6961d8605f0
author Bram Moolenaar <Bram@vim.org>
date Wed, 07 Apr 2021 21:30: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