view src/which.sh @ 16346:2fb516abde42 v8.1.1178

patch 8.1.1178: when mouse click tests fails value of 'ttytype' is unknown commit https://github.com/vim/vim/commit/4945219b99f8e191c599f80dedc0c4be02ed821e Author: Bram Moolenaar <Bram@vim.org> Date: Wed Apr 17 16:27:02 2019 +0200 patch 8.1.1178: when mouse click tests fails value of 'ttytype' is unknown Problem: When mouse click tests fails value of 'ttytype' is unknown. Solution: Add a message to the assert.
author Bram Moolenaar <Bram@vim.org>
date Wed, 17 Apr 2019 16:30:08 +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