view src/which.sh @ 10996:2f041b367cd9 v8.0.0387

patch 8.0.0387: compiler warnings commit https://github.com/vim/vim/commit/b113c3a618113122e62697dd73427261f8c51b2c Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 28 21:26:17 2017 +0100 patch 8.0.0387: compiler warnings Problem: compiler warnings Solution: Add type casts. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Tue, 28 Feb 2017 21:30:06 +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