view src/which.sh @ 22584:c271498e03b2 v8.2.1840

patch 8.2.1840: Vim9: error message is not clear about compilation error Commit: https://github.com/vim/vim/commit/f4e8cdd3d2156ab52aea1c7a392df66b7210e5eb Author: Bram Moolenaar <Bram@vim.org> Date: Mon Oct 12 22:07:13 2020 +0200 patch 8.2.1840: Vim9: error message is not clear about compilation error Problem: Vim9: error message is not clear about compilation error. Solution: Say "compiling" instead of "processing".
author Bram Moolenaar <Bram@vim.org>
date Mon, 12 Oct 2020 22:15:04 +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