view src/which.sh @ 25250:532faf893d37 v8.2.3161

patch 8.2.3161: Vim9: no error when reltime() has invalid arguments Commit: https://github.com/vim/vim/commit/c816a2c22667108fcd61f445de2c926f78ff9fa7 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jul 14 21:00:41 2021 +0200 patch 8.2.3161: Vim9: no error when reltime() has invalid arguments Problem: Vim9: no error when reltime() has invalid arguments. Solution: Add an error. (closes https://github.com/vim/vim/issues/8562)
author Bram Moolenaar <Bram@vim.org>
date Wed, 14 Jul 2021 21:15:03 +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