view src/which.sh @ 31533:a5959e14771a v9.0.1099

patch 9.0.1099: trying to resize a hashtab may cause a problem Commit: https://github.com/vim/vim/commit/81b7ecc5cb78cad901a9a85e46ecba109cc6ee7d Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 26 13:08:06 2022 +0000 patch 9.0.1099: trying to resize a hashtab may cause a problem Problem: Trying to resize a hashtab may cause a problem. Solution: Do not try to resize a hashtab before adding an item.
author Bram Moolenaar <Bram@vim.org>
date Mon, 26 Dec 2022 14: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