view src/which.sh @ 23442:f00d6ff51046 v8.2.2264

patch 8.2.2264: Vim9: no error for mismatched :endfunc or :enddef Commit: https://github.com/vim/vim/commit/5178b1b02fc96f42d62199a4be9184c2aea8a49a Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 1 18:43:51 2021 +0100 patch 8.2.2264: Vim9: no error for mismatched :endfunc or :enddef Problem: Vim9: no error for mismatched :endfunc or :enddef. Solution: Check for the mismatch. (issue https://github.com/vim/vim/issues/7582)
author Bram Moolenaar <Bram@vim.org>
date Fri, 01 Jan 2021 18:45:03 +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