view src/which.sh @ 23986:c1ba42fa843f v8.2.2535

patch 8.2.2535: MS-Windows: cannot run all vim9 tests Commit: https://github.com/vim/vim/commit/723ef5db980b2e69ef8bdc0dd448cb645491c464 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 20 20:13:42 2021 +0100 patch 8.2.2535: MS-Windows: cannot run all vim9 tests Problem: MS-Windows: cannot run all vim9 tests. Solution: Make test_vim9 target work.
author Bram Moolenaar <Bram@vim.org>
date Sat, 20 Feb 2021 20:15: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