view src/which.sh @ 27547:0410a4c24050 v8.2.4300

patch 8.2.4300: cannot build tiny version Commit: https://github.com/vim/vim/commit/4fa1346bf4210747f34b64d05b39309918ca538d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 5 12:39:24 2022 +0000 patch 8.2.4300: cannot build tiny version Problem: Cannot build tiny version. (Tony Mechelynck) Solution: Add #ifdef.
author Bram Moolenaar <Bram@vim.org>
date Sat, 05 Feb 2022 13:45:03 +0100
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