view src/which.sh @ 31190:02b719cd27c6 v9.0.0929

patch 9.0.0929: build failure with tiny version Commit: https://github.com/vim/vim/commit/0b6d6a186e961faa5b9058406234ffd93a7e6688 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Nov 23 14:33:01 2022 +0000 patch 9.0.0929: build failure with tiny version Problem: Build failure with tiny version. (Tony Mechelynck) Solution: Add #ifdef.
author Bram Moolenaar <Bram@vim.org>
date Wed, 23 Nov 2022 15:45:04 +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