view src/which.sh @ 7838:cfed0e9f0ca2 v7.4.1216

commit https://github.com/vim/vim/commit/ba4ef2757cfc126f342b710f1ad9ea39e6b56cec Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 30 21:48:49 2016 +0100 patch 7.4.1216 Problem: Still using HAVE_STDARG_H. Solution: Assume it's always defined.
author Christian Brabandt <cb@256bit.org>
date Sat, 30 Jan 2016 22:00:05 +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