view src/which.sh @ 15997:725255793949 v8.1.1004

patch 8.1.1004: function "luaV_setref()" not covered with tests commit https://github.com/vim/vim/commit/e165f63598b58bfdac0168583aa1ef75fbf7be6d Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 10 09:48:59 2019 +0100 patch 8.1.1004: function "luaV_setref()" not covered with tests Problem: Function "luaV_setref()" not covered with tests. Solution: Add a test. (Dominique Pelle, closes https://github.com/vim/vim/issues/4089)
author Bram Moolenaar <Bram@vim.org>
date Sun, 10 Mar 2019 10:00:13 +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