view src/which.sh @ 7220:1931b890e7d7 v7.4.919

commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Nov 10 19:48:14 2015 +0100 patch 7.4.919 Problem: The dll options are not in the options window. Solution: Add the dll options. And other fixes.
author Christian Brabandt <cb@256bit.org>
date Tue, 10 Nov 2015 20: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