view src/which.sh @ 26879:da89514c3b72 v8.2.3968

patch 8.2.3968: build failure Commit: https://github.com/vim/vim/commit/e70cec976026ce72d09b6589ebba4677581063ac Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 1 14:25:55 2022 +0000 patch 8.2.3968: build failure Problem: Build failure. Solution: Add missing changes.
author Bram Moolenaar <Bram@vim.org>
date Sat, 01 Jan 2022 15:30:06 +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