view src/which.sh @ 11840:3c1f89d85151 v8.0.0800

patch 8.0.0800 Problem: Terminal window scrollback contents is wrong. Solution: Fix handling of multi-byte characters (Yasuhiro Matsumoto) Handle empty lines correctly. (closes #1891) commit https://github.com/vim/vim/commit/696d00f488dc0599692993f226a7dd95a187920d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 29 14:52:43 2017 +0200 patch 8.0.0800 Problem: Terminal window scrollback contents is wrong. Solution: Fix handling of multi-byte characters (Yasuhiro Matsumoto) Handle empty lines correctly. (closes https://github.com/vim/vim/issues/1891)
author Christian Brabandt <cb@256bit.org>
date Sat, 29 Jul 2017 15:00: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