view src/which.sh @ 30699:f60315945f4a v9.0.0684

patch 9.0.0684: skipped :exe command fails compilation on MS-Windows Commit: https://github.com/vim/vim/commit/2eae3d24d7fe8beed64652bc5c1cbddd09dafc9a Author: Bram Moolenaar <Bram@vim.org> Date: Fri Oct 7 15:09:27 2022 +0100 patch 9.0.0684: skipped :exe command fails compilation on MS-Windows Problem: Skipped :exe command fails compilation on MS-Windows. Solution: Adjust return value when skipping.
author Bram Moolenaar <Bram@vim.org>
date Fri, 07 Oct 2022 16:15:03 +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