view src/which.sh @ 18597:b10ef01555c8 v8.1.2292

patch 8.1.2292: v:mouse_winid not set on click in popup window Commit: https://github.com/vim/vim/commit/d002e411c60a231b7c136a84422b3d9bf7b8b4df Author: Bram Moolenaar <Bram@vim.org> Date: Mon Nov 11 21:45:05 2019 +0100 patch 8.1.2292: v:mouse_winid not set on click in popup window Problem: v:mouse_winid not set on click in popup window. Solution: Set v:mouse_winid. (closes https://github.com/vim/vim/issues/5171)
author Bram Moolenaar <Bram@vim.org>
date Mon, 11 Nov 2019 22:00:03 +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