view src/which.sh @ 17614:d7708560b77c v8.1.1804

patch 8.1.1804: no test for display updating without a scroll region commit https://github.com/vim/vim/commit/3c8ee629745737aa231fdd123826ae021e398e49 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 3 22:55:50 2019 +0200 patch 8.1.1804: no test for display updating without a scroll region Problem: No test for display updating without a scroll region. Solution: Add a test.
author Bram Moolenaar <Bram@vim.org>
date Sat, 03 Aug 2019 23:00:06 +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