view src/which.sh @ 33156:49cc8eebab30 v9.0.1860

patch 9.0.1860: CI: test_crash1() is flaky Commit: https://github.com/vim/vim/commit/f44cbe96fa44d10d6dd717e0a9f6ef0f104ee98a Author: Christian Brabandt <cb@256bit.org> Date: Mon Sep 4 07:42:27 2023 +0200 patch 9.0.1860: CI: test_crash1() is flaky Problem: CI: test_crash1() is flaky Solution: Wait a bit longer Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Mon, 04 Sep 2023 07:45: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