view src/which.sh @ 23156:6aa8ddf7a3fa v8.2.2124

patch 8.2.2124: Vim9: a range cannot be computed at runtime Commit: https://github.com/vim/vim/commit/08597875b2a1e7d118b0346c652a96e7527e7d8b Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 10 19:43:40 2020 +0100 patch 8.2.2124: Vim9: a range cannot be computed at runtime Problem: Vim9: a range cannot be computed at runtime. Solution: Add the ISN_RANGE instruction.
author Bram Moolenaar <Bram@vim.org>
date Thu, 10 Dec 2020 19:45: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