view src/which.sh @ 24992:026718ffbfa8 v8.2.3033

patch 8.2.3033: no error when using alpha delimiter with :global Commit: https://github.com/vim/vim/commit/419a40ac9657e39646b2e0f3f71d7736b0c459d1 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 21 21:55:18 2021 +0200 patch 8.2.3033: no error when using alpha delimiter with :global Problem: No error when using alpha delimiter with :global. Solution: Check the delimiter like with :substitute. (closes https://github.com/vim/vim/issues/8415)
author Bram Moolenaar <Bram@vim.org>
date Mon, 21 Jun 2021 22:00:04 +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