view src/which.sh @ 26199:eaa97adb0732 v8.2.3631

patch 8.2.3631: "syntax enable" does not work properly in Vim9 context Commit: https://github.com/vim/vim/commit/c8a9fe541d3bee36d2760ed156997ddbb0142ee1 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 20 19:50:59 2021 +0000 patch 8.2.3631: "syntax enable" does not work properly in Vim9 context Problem: "syntax enable" does not work properly in Vim9 context. Solution: Also handle Vim9 context. (closes https://github.com/vim/vim/issues/9161)
author Bram Moolenaar <Bram@vim.org>
date Sat, 20 Nov 2021 21:00:04 +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