view src/which.sh @ 26424:f6ca4276c4cc v8.2.3743

patch 8.2.3743: ":sign" can add a highlight group without a name Commit: https://github.com/vim/vim/commit/5e18ccc60bdddc4aa39ab039f1a7c918f29e67ce Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 5 13:02:50 2021 +0000 patch 8.2.3743: ":sign" can add a highlight group without a name Problem: ":sign" can add a highlight group without a name. Solution: Give an error if the group name is missing. (closes https://github.com/vim/vim/issues/9280)
author Bram Moolenaar <Bram@vim.org>
date Sun, 05 Dec 2021 14:15: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