view src/which.sh @ 15802:f043c8931585 v8.1.0908

patch 8.1.0908: can't handle large value for %{nr}v in regexp commit https://github.com/vim/vim/commit/9403a2168db82b7de80f792984084bb3f00e2263 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 13 18:35:06 2019 +0100 patch 8.1.0908: can't handle large value for %{nr}v in regexp Problem: Can't handle large value for %{nr}v in regexp. (Kuang-che Wu) Solution: Give an error if the value is too large. (closes https://github.com/vim/vim/issues/3948)
author Bram Moolenaar <Bram@vim.org>
date Wed, 13 Feb 2019 18:45:06 +0100
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