view src/which.sh @ 30918:6a2a38b26caf v9.0.0793

patch 9.0.0793: MS-Windows: mouse scroll events only work with the dll Commit: https://github.com/vim/vim/commit/605d02a9b73cb49ac5022a127db3eac7e16a5d83 Author: Christopher Plewright <chris@createng.com> Date: Wed Oct 19 11:54:46 2022 +0100 patch 9.0.0793: MS-Windows: mouse scroll events only work with the dll Problem: MS-Windows: mouse scroll events only work with the dll. Solution: Accept CSI codes for MS-Windows without the GUI. (Christopher Plewright, closes #11401)
author Bram Moolenaar <Bram@vim.org>
date Wed, 19 Oct 2022 13:00:10 +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