view src/which.sh @ 16056:d35be08b5b96 v8.1.1033

patch 8.1.1033: memory usage test may still fail on some systems commit https://github.com/vim/vim/commit/ba64ba093520e85d6bed2595960edb693bdb4c51 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 22 11:33:09 2019 +0100 patch 8.1.1033: memory usage test may still fail on some systems Problem: Memory usage test may still fail on some systems. (Elimar Riesebieter) Solution: Increase tolerance from 1% to 3%.
author Bram Moolenaar <Bram@vim.org>
date Fri, 22 Mar 2019 11:45: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