view src/which.sh @ 24996:0136c6ee1961 v8.2.3035

patch 8.2.3035: Vim9: crash when calling :def function with partial Commit: https://github.com/vim/vim/commit/831bdf8622fdfce7f02d48f847005e3909a055a8 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 22 19:32:17 2021 +0200 patch 8.2.3035: Vim9: crash when calling :def function with partial Problem: Vim9: crash when calling :def function with partial and return type is not set. Solution: When the return type is not set handle like the return type is unknown. (closes #8422)
author Bram Moolenaar <Bram@vim.org>
date Tue, 22 Jun 2021 19:45: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