view src/which.sh @ 9888:de8de17a43d7 v7.4.2218

commit https://github.com/vim/vim/commit/13d216d30224f12ed5bfed71216a80715b32aeff Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 16 19:21:11 2016 +0200 patch 7.4.2218 Problem: Can't build with +timers when +digraph is not included. Solution: Change #ifdef for e_number_exp. (Damien)
author Christian Brabandt <cb@256bit.org>
date Tue, 16 Aug 2016 19:30:09 +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