view src/which.sh @ 12391:438c64b76eef v8.0.1075

patch 8.0.1075: MS-Windows: mouse does not work in terminal commit https://github.com/vim/vim/commit/1a735d6c9bf4204492b9f9aeba280737fab46ed3 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 8 16:25:54 2017 +0200 patch 8.0.1075: MS-Windows: mouse does not work in terminal Problem: MS-Windows: mouse does not work in terminal. Solution: Force the winpty mouse on. (Yasuhiro Matsumoto, closes https://github.com/vim/vim/issues/2072)
author Christian Brabandt <cb@256bit.org>
date Fri, 08 Sep 2017 16:30: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