view src/which.sh @ 30387:3e7274cee9c4 v9.0.0529

patch 9.0.0529: appveyor setup contains outdated lines Commit: https://github.com/vim/vim/commit/8eaee1fa5c0ce474132a04e1b70b73c49c41cc45 Author: K.Takata <kentkt@csc.jp> Date: Wed Sep 21 12:19:44 2022 +0100 patch 9.0.0529: appveyor setup contains outdated lines Problem: Appveyor setup contains outdated lines. Solution: Remove outdated lines. (Ken Takata, closes https://github.com/vim/vim/issues/11182)
author Bram Moolenaar <Bram@vim.org>
date Wed, 21 Sep 2022 13:30:02 +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