view src/which.sh @ 32043:6095218c9056 v9.0.1353

patch 9.0.1353: too many "else if" statements to handle option values Commit: https://github.com/vim/vim/commit/6d611de58c8e324491415da8e79c6bd3faa3e848 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Sat Feb 25 11:59:33 2023 +0000 patch 9.0.1353: too many "else if" statements to handle option values Problem: Too many "else if" statements to handle option values. Solution: Add more functions to handle option value changes. (Yegappan Lakshmanan, closes #12058)
author Bram Moolenaar <Bram@vim.org>
date Sat, 25 Feb 2023 13:00:05 +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