view src/which.sh @ 27225:95f202f77cbb v8.2.4141

patch 8.2.4141: Vim9 builtin functions test fails Commit: https://github.com/vim/vim/commit/17dd51963367495f75b0f0a73139081dd7b25500 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 18 21:42:37 2022 +0000 patch 8.2.4141: Vim9 builtin functions test fails Problem: Vim9 builtin functions test fails. Solution: Add "scriptversion" item to maparg() result.
author Bram Moolenaar <Bram@vim.org>
date Tue, 18 Jan 2022 22:45:03 +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