view src/which.sh @ 30491:729e2305f4b2 v9.0.0581

patch 9.0.0581: adding a character for incsearch fails at end of line Commit: https://github.com/vim/vim/commit/d4566c14e71c55dcef05fb34ea94eba835831527 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 24 21:06:39 2022 +0100 patch 9.0.0581: adding a character for incsearch fails at end of line Problem: Adding a character for incsearch fails at end of line. Solution: Only check cursor line number.
author Bram Moolenaar <Bram@vim.org>
date Sat, 24 Sep 2022 22:15:03 +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