view src/which.sh @ 15920:82e3ffdc1c2b v8.1.0966

patch 8.1.0966: one terminal test is flaky commit https://github.com/vim/vim/commit/3876789b2326c9e5ab70c0292e988c89504c14b4 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Feb 21 18:17:14 2019 +0100 patch 8.1.0966: one terminal test is flaky Problem: One terminal test is flaky. Solution: Add to list of flaky tests.
author Bram Moolenaar <Bram@vim.org>
date Thu, 21 Feb 2019 18:30:07 +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