view src/which.sh @ 18920:a76fdc6560c3 v8.2.0021

patch 8.2.0021: timer test fails too often on Travis with MacOS Commit: https://github.com/vim/vim/commit/bc28e9f15bed94a7680a6bb84690965049da12d8 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Dec 18 20:10:23 2019 +0100 patch 8.2.0021: timer test fails too often on Travis with MacOS Problem: Timer test fails too often on Travis with MacOS. Solution: Be less strict with the time.
author Bram Moolenaar <Bram@vim.org>
date Wed, 18 Dec 2019 20:15:03 +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