view src/which.sh @ 26668:f2579ccc97db v8.2.3863

patch 8.2.3863: various build flags accidentally enabled Commit: https://github.com/vim/vim/commit/8d95d7091da08d0a236be4a16616e3dda388e58d Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 20 22:12:53 2021 +0000 patch 8.2.3863: various build flags accidentally enabled Problem: Various build flags accidentally enabled. Solution: Revert several lines in Makefile.
author Bram Moolenaar <Bram@vim.org>
date Mon, 20 Dec 2021 23:15: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