view src/which.sh @ 19247:c077438ceb93 v8.2.0182

patch 8.2.0182: min() and max() materialize a range() list Commit: https://github.com/vim/vim/commit/9f2d020d396132ecbc0be6faa1de29c7078bb5ac Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 30 16:40:10 2020 +0100 patch 8.2.0182: min() and max() materialize a range() list Problem: Min() and max() materialize a range() list. Solution: Compute the result without materializing the list. (https://github.com/vim/vim/issues/5541)
author Bram Moolenaar <Bram@vim.org>
date Thu, 30 Jan 2020 16:45: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