view src/which.sh @ 25449:5dce28f92d04 v8.2.3261

patch 8.2.3261: Vim9: when compiling repeat(123, N) return type is number Commit: https://github.com/vim/vim/commit/1780f08ba42837b6d4a5f0451117a79b2d49974a Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 31 22:03:59 2021 +0200 patch 8.2.3261: Vim9: when compiling repeat(123, N) return type is number Problem: Vim9: when compiling repeat(123, N) return type is number. Solution: Make return type a string. (closes https://github.com/vim/vim/issues/8664)
author Bram Moolenaar <Bram@vim.org>
date Sat, 31 Jul 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