view src/which.sh @ 31388:1ff377bc0726 v9.0.1027

patch 9.0.1027: LGTM is soon shutting down Commit: https://github.com/vim/vim/commit/647b8dfa7f6300df833b4e5e2a38a4cdfa7de3fc Author: Philip H <47042125+pheiduck@users.noreply.github.com> Date: Wed Dec 7 23:00:26 2022 +0000 patch 9.0.1027: LGTM is soon shutting down Problem: LGTM is soon shutting down. Solution: Remove LGTM from CI. (closes https://github.com/vim/vim/issues/11671)
author Bram Moolenaar <Bram@vim.org>
date Thu, 08 Dec 2022 00:15:02 +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