view src/which.sh @ 8120:350f8040bd37 v7.4.1354

commit https://github.com/vim/vim/commit/223b723be0703137cf6373e23f8ae5c02e92ef82 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 19 19:43:49 2016 +0100 patch 7.4.1354 Problem: MS-Windows: Mismatch between default compile options and what the code expects. Solution: Change the default WINVER from 0x0500 to 0x0501. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Fri, 19 Feb 2016 19:45: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