view src/which.sh @ 30431:8a25c8215d4a v9.0.0551

patch 9.0.0551: mode message is delayed when :echowin was used Commit: https://github.com/vim/vim/commit/f87eeb43fb29f5e3d39807e6ce49e5e2d72eb38b Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 22 19:02:38 2022 +0100 patch 9.0.0551: mode message is delayed when :echowin was used Problem: Mode message is delayed when :echowin was used. (Maxim Kim) Solution: Save and restore msg_didout in :echowin. (closes https://github.com/vim/vim/issues/11193)
author Bram Moolenaar <Bram@vim.org>
date Thu, 22 Sep 2022 20:15:04 +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