view src/which.sh @ 29383:e76e18a20d9c v9.0.0034

patch 9.0.0034: spell tests do not always clear the word list Commit: https://github.com/vim/vim/commit/288ed23e3929ff55a8ae30db0ba3f57b6f119dc8 Author: zeertzjq <zeertzjq@outlook.com> Date: Mon Jul 4 11:03:07 2022 +0100 patch 9.0.0034: spell tests do not always clear the word list Problem: Spell tests do not always clear the word list. Solution: Clear the word list in TearDown(). (closes https://github.com/vim/vim/issues/10659)
author Bram Moolenaar <Bram@vim.org>
date Mon, 04 Jul 2022 12:15: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