view src/which.sh @ 11678:6bbc7bc0f3dd v8.0.0722

patch 8.0.0722: screen is messed by timer up at inputlist() prompt commit https://github.com/vim/vim/commit/c9041079a199d753e73d3b242f21cc8db620179a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 16 15:48:46 2017 +0200 patch 8.0.0722: screen is messed by timer up at inputlist() prompt Problem: Screen is messed by timer up at inputlist() prompt. Solution: Set state to ASKMORE. (closes https://github.com/vim/vim/issues/1843)
author Christian Brabandt <cb@256bit.org>
date Sun, 16 Jul 2017 16:00: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