view src/which.sh @ 9671:5d7216118c8a

commit https://github.com/vim/vim/commit/471a8975690af01a1244b28d5b5f978ca623028f Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 28 22:36:37 2016 +0200 Update gitignore for new test binary. (Oyvind Holm, closes https://github.com/vim/vim/issues/954)
author Christian Brabandt <cb@256bit.org>
date Thu, 28 Jul 2016 23:00:06 +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