view src/which.sh @ 20309:cae01dabd78e v8.2.0710

patch 8.2.0710: Netbeans test sometimes fails Commit: https://github.com/vim/vim/commit/4a070cc82e00618db279526797564cb2b4e9b060 Author: Bram Moolenaar <Bram@vim.org> Date: Thu May 7 18:16:35 2020 +0200 patch 8.2.0710: Netbeans test sometimes fails Problem: Netbeans test sometimes fails. Solution: Mark any test using an external command as flaky.
author Bram Moolenaar <Bram@vim.org>
date Thu, 07 May 2020 18:30: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