view src/which.sh @ 20970:736d6e6f55f6 v8.2.1036

patch 8.2.1036: popupwin test fails sometimes Commit: https://github.com/vim/vim/commit/373c65104e0991724cb57910dfb3e5c276e2d7e7 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 22 19:24:23 2020 +0200 patch 8.2.1036: popupwin test fails sometimes Problem: Popupwin test fails sometimes. Solution: Use WaitForAssert() instead of a sleep.
author Bram Moolenaar <Bram@vim.org>
date Mon, 22 Jun 2020 19: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