view src/which.sh @ 9264:b0be59a89bde v7.4.1915

commit https://github.com/vim/vim/commit/2a67ed83a885e8e65e25498660dae4f34d532c7b Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 10 21:52:42 2016 +0200 patch 7.4.1915 Problem: The effect of the PopupMenu autocommand isn't directly visible. Solution: Call gui_update_menus() before displaying the popup menu. (Shane Harper, closs https://github.com/vim/vim/issues/855)
author Christian Brabandt <cb@256bit.org>
date Fri, 10 Jun 2016 22:00:06 +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