view src/which.sh @ 11874:d444e087b8fd v8.0.0817

patch 8.0.0817: cannot get the terminal line at the cursor commit https://github.com/vim/vim/commit/22aad2f8806acf390568b8e524e53260a322aaa5 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 30 18:19:46 2017 +0200 patch 8.0.0817: cannot get the terminal line at the cursor Problem: Cannot get the line of a terminal window at the cursor. Solution: Make the row argunt optionsl. (Yasuhiro Matsumoto, closes https://github.com/vim/vim/issues/1898)
author Christian Brabandt <cb@256bit.org>
date Sun, 30 Jul 2017 18: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