view src/which.sh @ 18607:fbeb1bf0cea8 v8.1.2297

patch 8.1.2297: the ex_vimgrep() function is too long Commit: https://github.com/vim/vim/commit/d6a98a3a9768568b668f91a53267b36f86b84466 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Nov 12 22:59:51 2019 +0100 patch 8.1.2297: the ex_vimgrep() function is too long Problem: The ex_vimgrep() function is too long. Solution: Split it in three parts. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5211)
author Bram Moolenaar <Bram@vim.org>
date Tue, 12 Nov 2019 23:00:04 +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