view src/which.sh @ 30641:1207b6d6cf9e v9.0.0655

patch 9.0.0655: passing modifier codes to a shell running in the GUI Commit: https://github.com/vim/vim/commit/2f7e1b8b40dbc97752b8b816560f752f16e0207a Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 4 13:17:31 2022 +0100 patch 9.0.0655: passing modifier codes to a shell running in the GUI Problem: passing modifier codes to a shell running in the GUI. (Gary Johnson) Solution: Include modifier codes into the key and drop the modifiers.
author Bram Moolenaar <Bram@vim.org>
date Tue, 04 Oct 2022 14:30:05 +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