view src/which.sh @ 14710:b9a4e49a3f7c v8.1.0367

patch 8.1.0367: getchar(1) no longer processes pending messages commit https://github.com/vim/vim/commit/84d9390480548c8d711dd772cb162a91d0bb3c30 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 11 20:10:20 2018 +0200 patch 8.1.0367: getchar(1) no longer processes pending messages Problem: getchar(1) no longer processes pending messages. (Yasuhiro Matsumoto) Solution: Call parse_queued_messages().
author Christian Brabandt <cb@256bit.org>
date Tue, 11 Sep 2018 20:15:07 +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