view src/which.sh @ 17266:a9556c0ba457 v8.1.1632

patch 8.1.1632: build with EXITFREE but without +arabic fails commit https://github.com/vim/vim/commit/48ac671fe5cb5a7c2d5263d2f122e5e903022e30 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 4 20:26:21 2019 +0200 patch 8.1.1632: build with EXITFREE but without +arabic fails Problem: Build with EXITFREE but without +arabic fails. Solution: Rename the function and adjust #ifdefs. (closes https://github.com/vim/vim/issues/4613)
author Bram Moolenaar <Bram@vim.org>
date Thu, 04 Jul 2019 20:30:05 +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