view src/which.sh @ 29847:2ed5e06e7285 v9.0.0262

patch 9.0.0262: build failure without the +quickfix feature Commit: https://github.com/vim/vim/commit/2e6dcbc4450c98bd12faace5d77a65f2afddae44 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 25 13:54:16 2022 +0100 patch 9.0.0262: build failure without the +quickfix feature Problem: Build failure without the +quickfix feature. Solution: Add #ifdef.
author Bram Moolenaar <Bram@vim.org>
date Thu, 25 Aug 2022 15: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