view src/which.sh @ 27201:7d66380a6b86 v8.2.4129

patch 8.2.4129: building with +sound but without +eval fails Commit: https://github.com/vim/vim/commit/1247126956c2ba666048b2bf99630eef7495e98e Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 18 11:11:25 2022 +0000 patch 8.2.4129: building with +sound but without +eval fails Problem: Building with +sound but without +eval fails. (Dominique Pell?) Solution: Disable canberra in tiny and small build. (closes https://github.com/vim/vim/issues/9548)
author Bram Moolenaar <Bram@vim.org>
date Tue, 18 Jan 2022 12: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