view src/which.sh @ 16352:c742c008953e v8.1.1181

patch 8.1.1181: tests for mouse clicks are a bit flaky commit https://github.com/vim/vim/commit/2b00b9b0f355421fdb49e3a15f5a62af657d1922 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Apr 17 17:08:27 2019 +0200 patch 8.1.1181: tests for mouse clicks are a bit flaky Problem: Tests for mouse clicks are a bit flaky when run in an interactive terminal. Solution: Use "xterm2" instead of "xterm" for 'ttymouse' to avoid spurious drag events.
author Bram Moolenaar <Bram@vim.org>
date Wed, 17 Apr 2019 17:15:05 +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