view src/which.sh @ 25473:9a4cb96c9550 v8.2.3273

patch 8.2.3273: autocmd test fails Commit: https://github.com/vim/vim/commit/1321257317b7d28228a6a9a0d612f81f70290b4c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 1 22:01:30 2021 +0200 patch 8.2.3273: autocmd test fails Problem: Autocmd test fails. Solution: Require white space before the "{" that starts a block.
author Bram Moolenaar <Bram@vim.org>
date Sun, 01 Aug 2021 22:15:03 +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