view src/which.sh @ 10732:390ad2cccd3f v8.0.0256

patch 8.0.0256: missing changes to one file breaks test commit https://github.com/vim/vim/commit/3a29abcb6154d9f55ca8abd6d97e5822b97ac4b3 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 28 18:31:41 2017 +0100 patch 8.0.0256: missing changes to one file breaks test Problem: Tests fail because some changes were not included. Solution: Add changes to evalfunc.c
author Christian Brabandt <cb@256bit.org>
date Sat, 28 Jan 2017 18: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