view src/which.sh @ 10503:e0ad6123213c v8.0.0144

commit https://github.com/vim/vim/commit/9269315f635e44a340389be7e986782b98499311 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 6 14:55:36 2017 +0100 patch 8.0.0144: when using MSVC the GvimExt directory is cleaned twice Problem: When using MSVC the GvimExt directory is cleaned twice. Solution: Remove the lines. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Fri, 06 Jan 2017 15:00:04 +0100
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