view src/which.sh @ 12429:269d3cdc1214 v8.0.1094

patch 8.0.1094: using ssh from Terminal.app runs into xterm incompatibility commit https://github.com/vim/vim/commit/c212798333cab2239acd387725987f27c6d8a3f7 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Sep 11 20:34:13 2017 +0200 patch 8.0.1094: using ssh from Terminal.app runs into xterm incompatibility Problem: Using ssh from Terminal.app runs into xterm incompatibility. Solution: Also detect Terminal.app on non-Mac systems.
author Christian Brabandt <cb@256bit.org>
date Mon, 11 Sep 2017 20:45: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