view src/which.sh @ 29888:a63d3a0e9aba v9.0.0282

patch 9.0.0282: a nested timout stops the previous timeout Commit: https://github.com/vim/vim/commit/0f618386367ba9388e1f50bc665bc1add6c01567 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 26 21:33:04 2022 +0100 patch 9.0.0282: a nested timout stops the previous timeout Problem: A nested timout stops the previous timeout. Solution: Ignore any nested timeout.
author Bram Moolenaar <Bram@vim.org>
date Fri, 26 Aug 2022 22:45:06 +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