view src/which.sh @ 14214:68166b841ee9 v8.1.0124

patch 8.1.0124: has('vcon') returns true even for non-win32 terminal commit https://github.com/vim/vim/commit/d8b37a53bd29cab78c6997aa75207385213f23e2 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 28 15:50:28 2018 +0200 patch 8.1.0124: has('vcon') returns true even for non-win32 terminal Problem: has('vcon') returns true even for non-win32 terminal. Solution: Check the terminal type. (Nobuhiro Takasaki, closes https://github.com/vim/vim/issues/3106)
author Christian Brabandt <cb@256bit.org>
date Thu, 28 Jun 2018 16:00: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