view src/which.sh @ 31219:42acbd0cb313 v9.0.0943

patch 9.0.0943: pretending to go out of Insert mode when Esc is received Commit: https://github.com/vim/vim/commit/d330e8422d1c4670a241ce8ebde4c37918538dce Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 24 20:23:24 2022 +0000 patch 9.0.0943: pretending to go out of Insert mode when Esc is received Problem: Pretending to go out of Insert mode when Esc is received has side effects. Solution: When the kitty keyboard protocol is enabled expect Esc to always be the start of an escape sequence.
author Bram Moolenaar <Bram@vim.org>
date Thu, 24 Nov 2022 21:30:04 +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