view src/which.sh @ 17022:79c3a52fdb07 v8.1.1511

patch 8.1.1511: matches in a popup window are not displayed properly commit https://github.com/vim/vim/commit/ac2450a9a863f02a5e749f2b7058157cbf76edf8 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 9 18:04:28 2019 +0200 patch 8.1.1511: matches in a popup window are not displayed properly Problem: Matches in a popup window are not displayed properly. Solution: Do display matches in a popup window. (closes https://github.com/vim/vim/issues/4517)
author Bram Moolenaar <Bram@vim.org>
date Sun, 09 Jun 2019 18:15:05 +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