view src/which.sh @ 24539:3a290891a015 v8.2.2809

patch 8.2.2809: Vim9: :def function compilation fails when using :legacy Commit: https://github.com/vim/vim/commit/dc4c2309f2af347068edd60548269018f476dab9 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 25 13:54:42 2021 +0200 patch 8.2.2809: Vim9: :def function compilation fails when using :legacy Problem: Vim9: :def function compilation fails when using :legacy. Solution: Reset CMOD_LEGACY when compiling a function. (closes https://github.com/vim/vim/issues/8137)
author Bram Moolenaar <Bram@vim.org>
date Sun, 25 Apr 2021 14:00: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