view src/which.sh @ 20937:a02ba6be5a84 v8.2.1020

patch 8.2.1020: popupwin test fails in the GUI Commit: https://github.com/vim/vim/commit/b326edf5b30813b2ccdee3ac07ee6495ca5187ff Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 20 15:03:38 2020 +0200 patch 8.2.1020: popupwin test fails in the GUI Problem: Popupwin test fails in the GUI. Solution: Send GUI byte sequence for <C-S-a>.
author Bram Moolenaar <Bram@vim.org>
date Sat, 20 Jun 2020 15:15: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