view src/which.sh @ 24156:a358fa462560 v8.2.2619

patch 8.2.2619: Vim9: no test for return type of lambda Commit: https://github.com/vim/vim/commit/5f91e74bf968c9033474086b2d9cb457281c8aa6 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 17 21:29:29 2021 +0100 patch 8.2.2619: Vim9: no test for return type of lambda Problem: Vim9: no test for return type of lambda. Solution: Add a test.
author Bram Moolenaar <Bram@vim.org>
date Wed, 17 Mar 2021 21:30:02 +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