view src/which.sh @ 19715:e73167dd8cac v8.2.0414

patch 8.2.0414: channel connect_waittime() test is flaky Commit: https://github.com/vim/vim/commit/373a876d0cac5f8aff352e8ca42fdac88a1a7c3b Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 19 19:44:32 2020 +0100 patch 8.2.0414: channel connect_waittime() test is flaky Problem: Channel connect_waittime() test is flaky. Solution: Set the test_is_flaky flag. Use test_is_flaky for more tests.
author Bram Moolenaar <Bram@vim.org>
date Thu, 19 Mar 2020 19:45: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