view src/which.sh @ 24563:30ad18017e1c v8.2.2821

patch 8.2.2821: MS-Windows: unnessarily loading libraries when registering OLE Commit: https://github.com/vim/vim/commit/3d0e7a956afb6f913466e96bd462eff0c92ad4c6 Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 1 17:46:03 2021 +0200 patch 8.2.2821: MS-Windows: unnessarily loading libraries when registering OLE Problem: MS-Windows: unnessarily loading libraries when registering OLE. Solution: Skip loading libraries when invoked with "-register".
author Bram Moolenaar <Bram@vim.org>
date Sat, 01 May 2021 18:00:06 +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