view src/which.sh @ 36029:5128a5e463fd v9.1.0690

patch 9.1.0690: cannot set special highlight kind in popupmenu Commit: https://github.com/vim/vim/commit/38f99a1f0d61e9bde3f4a3d0cbe2d06185c4a57f Author: glepnir <glephunter@gmail.com> Date: Fri Aug 23 18:31:06 2024 +0200 patch 9.1.0690: cannot set special highlight kind in popupmenu Problem: cannot set special highlight kind in popupmenu Solution: add kind_hlgroup item to complete function (glepnir) closes: #15561 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Fri, 23 Aug 2024 18:45:07 +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