view src/which.sh @ 29950:c8b1a683323c v9.0.0313

patch 9.0.0313: using common name in tests leads to flaky tests Commit: https://github.com/vim/vim/commit/e7cda97b6b578b33a42de0d27ac2876337c641ca Author: Bram Moolenaar <Bram@vim.org> Date: Mon Aug 29 11:02:59 2022 +0100 patch 9.0.0313: using common name in tests leads to flaky tests Problem: Using common name in tests leads to flaky tests. Solution: Rename files and directories to be more specific.
author Bram Moolenaar <Bram@vim.org>
date Mon, 29 Aug 2022 12: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