view src/which.sh @ 27954:3de9be15de51 v8.2.4502

patch 8.2.4502: in the GUI a modifier is not recognized after CTRL-X Commit: https://github.com/vim/vim/commit/d979d64fa269ff47a96fc6aed2f4cdd066753c0c Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 4 14:51:06 2022 +0000 patch 8.2.4502: in the GUI a modifier is not recognized after CTRL-X Problem: In the GUI a modifier is not recognized for the key typed after CTRL-X, which may result in a mapping to be used. (Daniel Steinberg) Solution: Recognize a modifier starting with CSI. (closes #9889)
author Bram Moolenaar <Bram@vim.org>
date Fri, 04 Mar 2022 16:00: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