view src/which.sh @ 15629:dd2e0b83a660

patch 8.1.0822: peeking and flushing output slows down execution commit https://github.com/vim/vim/commit/cb574f415486adff645ce384979bfecf27f5be8c Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 25 22:29:57 2019 +0100 patch 8.1.0822: peeking and flushing output slows down execution Problem: Peeking and flushing output slows down execution. Solution: Do not update the mode message when global_busy is set. Do not flush when only peeking for a character. (Ken Takata)
author Bram Moolenaar <Bram@vim.org>
date Fri, 25 Jan 2019 22:30:13 +0100
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