view src/which.sh @ 15738:56be1282994f v8.1.0876

patch 8.1.0876: completion match not displayed when popup menu is not shown commit https://github.com/vim/vim/commit/2a78b7c70471527d83adef6b147dbfb6c9f838f7 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 5 20:12:06 2019 +0100 patch 8.1.0876: completion match not displayed when popup menu is not shown Problem: Completion match not displayed when popup menu is not shown. Solution: Call update_screen() when not displaying the popup menu to show the inserted match. (Ken Takata, Hirohito Higashi)
author Bram Moolenaar <Bram@vim.org>
date Tue, 05 Feb 2019 20:15:05 +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