view src/which.sh @ 14633:462087b5c415 v8.1.0330

patch 8.1.0330: the qf_add_entries() function is too long commit https://github.com/vim/vim/commit/6f6ef7c1951b080843f3da049d3f5d0679de7348 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 28 22:07:44 2018 +0200 patch 8.1.0330: the qf_add_entries() function is too long Problem: The qf_add_entries() function is too long. Solution: Split in two parts. (Yegappan Lakshmanan)
author Christian Brabandt <cb@256bit.org>
date Tue, 28 Aug 2018 22:15:08 +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