view src/which.sh @ 30200:499c766d0c14 v9.0.0436

patch 9.0.0436: CI: running tests in parallel causes flakiness Commit: https://github.com/vim/vim/commit/2da11a4124989e3be917fa8024025d2e1452b363 Author: K.Takata <kentkt@csc.jp> Date: Sat Sep 10 13:03:12 2022 +0100 patch 9.0.0436: CI: running tests in parallel causes flakiness Problem: CI: running tests in parallel causes flakiness. Solution: Reorganize the MS-Windows runs. (Ken Takata, closes https://github.com/vim/vim/issues/11101)
author Bram Moolenaar <Bram@vim.org>
date Sat, 10 Sep 2022 14: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