view src/which.sh @ 31584:cfc60c536a2f v9.0.1124

patch 9.0.1124: virtual text at a column position is truncated Commit: https://github.com/vim/vim/commit/1aeb3eb092a384e63a407096102fd5a954aabeb8 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 1 14:04:51 2023 +0000 patch 9.0.1124: virtual text at a column position is truncated Problem: Virtual text at a column position is truncated at the window edge. (Yegappan Lakshmanan) Solution: Do not truncated virtual text that is placed at a column.
author Bram Moolenaar <Bram@vim.org>
date Sun, 01 Jan 2023 15: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