view src/which.sh @ 26873:be85735650f7 v8.2.3965

patch 8.2.3965: Vim9: no easy way to check if Vim9 script is supported Commit: https://github.com/vim/vim/commit/b79ee0c299d786627784f7304ba84b80e78ece26 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 1 12:17:00 2022 +0000 patch 8.2.3965: Vim9: no easy way to check if Vim9 script is supported Problem: Vim9: no easy way to check if Vim9 script is supported. Solution: Add has('vim9script').
author Bram Moolenaar <Bram@vim.org>
date Sat, 01 Jan 2022 13:30: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