view src/which.sh @ 24836:10ae5832dec8 v8.2.2956

patch 8.2.2956: Vim9: need to plan for future additions Commit: https://github.com/vim/vim/commit/f05d2fc539c389c3b8142d9fb06fb0443de14902 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 6 22:02:16 2021 +0200 patch 8.2.2956: Vim9: need to plan for future additions Problem: Vim9: need to plan for future additions. Solution: Reserve commands for future use: :type, :class, :enum.
author Bram Moolenaar <Bram@vim.org>
date Sun, 06 Jun 2021 22:15:02 +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