view src/which.sh @ 17726:586558396b7e v8.1.1860

patch 8.1.1860: map timeout test is flaky commit https://github.com/vim/vim/commit/ea94c855163cf58a3389b5f3c54a0767c9e1be49 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 16 21:47:27 2019 +0200 patch 8.1.1860: map timeout test is flaky Problem: Map timeout test is flaky. Solution: Add test to list of flaky tests. Increase timeout.
author Bram Moolenaar <Bram@vim.org>
date Fri, 16 Aug 2019 22:00:03 +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