view src/which.sh @ 23268:65fd662b434d v8.2.2180

patch 8.2.2180: Vim9: test for error after error is flaky Commit: https://github.com/vim/vim/commit/6f17a3f0237302b82cc31fb889d9094b51856948 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 21 18:11:24 2020 +0100 patch 8.2.2180: Vim9: test for error after error is flaky Problem: Vim9: test for error after error is flaky. Solution: Wait for job to finish instead of a fixed delay.
author Bram Moolenaar <Bram@vim.org>
date Mon, 21 Dec 2020 18:15:04 +0100
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