view src/which.sh @ 30403:42d592459521 v9.0.0537

patch 9.0.0537: the do_set() function is much too long Commit: https://github.com/vim/vim/commit/4740394f230dda09d6e9337465305741d8ee4fa3 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 21 21:12:53 2022 +0100 patch 9.0.0537: the do_set() function is much too long Problem: The do_set() function is much too long. Solution: Move setting of a string option to a separate function.
author Bram Moolenaar <Bram@vim.org>
date Wed, 21 Sep 2022 22: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