view src/which.sh @ 26725:11383a35b497 v8.2.3891

patch 8.2.3891: github CI: workflows may overlap Commit: https://github.com/vim/vim/commit/7f4a628efefd893a3cad3a1fdde340c98360f705 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Sat Dec 25 11:20:30 2021 +0000 patch 8.2.3891: github CI: workflows may overlap Problem: Github CI: workflows may overlap. Solution: Cancel previous workflows when starting a new one. (Yegappan Lakshmanan, closes #9400)
author Bram Moolenaar <Bram@vim.org>
date Sat, 25 Dec 2021 12:30:03 +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