view src/which.sh @ 8192:fa2668601c7a v7.4.1389

commit https://github.com/vim/vim/commit/b2bd6a087d0598f6934bba825bed7535f42efc91 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 22 20:20:25 2016 +0100 patch 7.4.1389 Problem: Incomplete function declaration. Solution: Add "void". (Yasuhiro Matsumoto)
author Christian Brabandt <cb@256bit.org>
date Mon, 22 Feb 2016 20:30: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