view src/which.sh @ 29800:ae63d041243b v9.0.0239

patch 9.0.0239: build failure without the +wildmenu feature Commit: https://github.com/vim/vim/commit/8884916043a4d517ff1cf3afb8c8a424a8ef3610 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 21 19:08:50 2022 +0100 patch 9.0.0239: build failure without the +wildmenu feature Problem: Build failure without the +wildmenu feature. Solution: Move parenthesis.
author Bram Moolenaar <Bram@vim.org>
date Sun, 21 Aug 2022 20: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