view src/which.sh @ 23207:f2da0d40449f v8.2.2149

patch 8.2.2149: popupwin test for latin1 sometimes fails Commit: https://github.com/vim/vim/commit/4c5bdb99ad632d703e94fffafba11b91861fea48 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 17 17:45:59 2020 +0100 patch 8.2.2149: popupwin test for latin1 sometimes fails Problem: Popupwin test for latin1 sometimes fails. Solution: Wait for the script to finish.
author Bram Moolenaar <Bram@vim.org>
date Thu, 17 Dec 2020 18:00:04 +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