view src/which.sh @ 31129:9cc7b2cec8ad v9.0.0899

patch 9.0.0899: the builtin terminals are in one long list Commit: https://github.com/vim/vim/commit/4654d63dec03650825875006c06bb0b0ae43283f Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 17 22:05:12 2022 +0000 patch 9.0.0899: the builtin terminals are in one long list Problem: The builtin terminals are in one long list. Solution: Refactor into multiple lists and an index of the lists.
author Bram Moolenaar <Bram@vim.org>
date Thu, 17 Nov 2022 23: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