view src/which.sh @ 29277:6e7b9156b08f v8.2.5156

patch 8.2.5156: search timeout test often fails with FreeBSD Commit: https://github.com/vim/vim/commit/e9b74c03618e2dcd01cd71f8d62d620fbce884fa Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 24 20:11:59 2022 +0100 patch 8.2.5156: search timeout test often fails with FreeBSD Problem: Search timeout test often fails with FreeBSD. Solution: Double the maximum time.
author Bram Moolenaar <Bram@vim.org>
date Fri, 24 Jun 2022 21: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