view src/which.sh @ 30914:58cb6591ad12 v9.0.0791

patch 9.0.0791: at the hit-Enter prompt the End and Home keys may not work Commit: https://github.com/vim/vim/commit/a353282c13287058fde95bb6eb914e342fd4253c Author: Trygve Aaberge <trygveaa@gmail.com> Date: Tue Oct 18 19:22:25 2022 +0100 patch 9.0.0791: at the hit-Enter prompt the End and Home keys may not work Problem: At the hit-Enter prompt the End and Home keys may not work. Solution: Use the special "@" code for End and Home, like it was done for the cursor keys in patch 8.2.2246. (Trygve Aaberge, closes #11396)
author Bram Moolenaar <Bram@vim.org>
date Tue, 18 Oct 2022 20:30: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