view src/which.sh @ 32574:b94e34534b57 v9.0.1619

patch 9.0.1619: the focus gained/lost escape sequences cause trouble Commit: https://github.com/vim/vim/commit/85ef2df075a189da8b767d7554caaed8077de868 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 8 18:44:01 2023 +0100 patch 9.0.1619: the focus gained/lost escape sequences cause trouble Problem: The focus gained/lost escape sequences cause trouble for a terminal where Vim does not expect them. Solution: Always recognize the codes for focus gained/lost. (closes #12499)
author Bram Moolenaar <Bram@vim.org>
date Thu, 08 Jun 2023 19:45: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