view src/which.sh @ 12230:42823852a212 v8.0.0995

patch 8.0.0995: terminal tests fail on Mac commit https://github.com/vim/vim/commit/753289f9bf71c0528f00d803a39d017184640e9d Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 25 23:22:05 2017 +0200 patch 8.0.0995: terminal tests fail on Mac Problem: Terminal tests fail on Mac. Solution: Add workaround: sleep a moment in between sending keys.
author Christian Brabandt <cb@256bit.org>
date Fri, 25 Aug 2017 23:30:04 +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