view src/which.sh @ 24000:bb2e921d2601 v8.2.2542

patch 8.2.2542: highlight of char beyond line end is not correct Commit: https://github.com/vim/vim/commit/41f0895c6e3c7b921e3c102ad42be52b1be48018 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 22 22:13:49 2021 +0100 patch 8.2.2542: highlight of char beyond line end is not correct Problem: Highlight of char beyond line end is not correct. (Chuan Wei Foo) Solution: Fix counting NUL as one cell. Draw one more character if the EOL is part of the match. (closes #7883)
author Bram Moolenaar <Bram@vim.org>
date Mon, 22 Feb 2021 22: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