view src/which.sh @ 28627:da77eb586899 v8.2.4837

patch 8.2.4837: modifiers not simplified when timed out Commit: https://github.com/vim/vim/commit/68a573ce2b996602a86b14d9b258ebb8c657604f Author: zeertzjq <zeertzjq@outlook.com> Date: Thu Apr 28 14:10:01 2022 +0100 patch 8.2.4837: modifiers not simplified when timed out Problem: Modifiers not simplified when timed out or using feedkeys() with 'n" flag. Solution: Adjust how mapped flag and timeout are used. (closes #10305)
author Bram Moolenaar <Bram@vim.org>
date Thu, 28 Apr 2022 15:15: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