view src/which.sh @ 23066:b3124656f050 v8.2.2079

patch 8.2.2079: Vim9: cannot put a linebreak before or after "in" of ":for" Commit: https://github.com/vim/vim/commit/38bd8de551225bfca133805f21cee2592f0c759d Author: Bram Moolenaar <Bram@vim.org> Date: Wed Dec 2 13:23:36 2020 +0100 patch 8.2.2079: Vim9: cannot put a linebreak before or after "in" of ":for" Problem: Vim9: cannot put a linebreak before or after "in" of ":for". Solution: Skip over linebreak.
author Bram Moolenaar <Bram@vim.org>
date Wed, 02 Dec 2020 13:30:04 +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