view src/which.sh @ 22377:b2cb2a321af9 v8.2.1737

patch 8.2.1737: cursor line highlight in popup window is not always updated Commit: https://github.com/vim/vim/commit/10476521f51d5902d191f2189307781fc48a3a16 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 24 22:57:31 2020 +0200 patch 8.2.1737: cursor line highlight in popup window is not always updated Problem: Cursor line highlight in popup window is not always updated. Solution: Check if the cursor has moved. (closes https://github.com/vim/vim/issues/7010)
author Bram Moolenaar <Bram@vim.org>
date Thu, 24 Sep 2020 23:00:04 +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