view src/which.sh @ 14191:ec39f281e3e8 v8.1.0113

patch 8.1.0113: compiler warning for unused variable commit https://github.com/vim/vim/commit/829adb74605604ff0bec33862cde850efb294711 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 24 19:24:03 2018 +0200 patch 8.1.0113: compiler warning for unused variable Problem: Compiler warning for unused variable. (Yegappan Lakshmanan) Solution: Add UNUSED. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Sun, 24 Jun 2018 19:30:05 +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