view src/which.sh @ 12295:270256b6d0b8 v8.0.1027

patch 8.0.1027: more terminals can't handle requesting cursor mode commit https://github.com/vim/vim/commit/2db0ec4b2ec405aca4e642e0420ce703f94914a8 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 31 20:17:59 2017 +0200 patch 8.0.1027: more terminals can't handle requesting cursor mode Problem: More terminals can't handle requesting cursor mode. Solution: Recognize Putty. (Hirohito Higashi) Also include Xfce in the version check. (Dominique Pelle) Recognize Konsole.
author Christian Brabandt <cb@256bit.org>
date Thu, 31 Aug 2017 20:30: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