view src/which.sh @ 11430:eba1a8c6e21d v8.0.0599

patch 8.0.0599: diff mode is insufficiently tested commit https://github.com/vim/vim/commit/79a213d6a4e909703524a7f1ad985c7bd40650a6 Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 16 13:15:18 2017 +0200 patch 8.0.0599: diff mode is insufficiently tested Problem: diff mode is insufficiently tested Solution: Add more test cases. (Dominique Pelle, closes https://github.com/vim/vim/issues/1685)
author Christian Brabandt <cb@256bit.org>
date Tue, 16 May 2017 13:30: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