view src/which.sh @ 21162:3158cc2384cc v8.2.1132

patch 8.2.1132: Vim9: return type of repeat() is not specific enough Commit: https://github.com/vim/vim/commit/9978d473e32cee928d6f901a5eb9a297a2970132 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 5 16:01:56 2020 +0200 patch 8.2.1132: Vim9: return type of repeat() is not specific enough Problem: Vim9: return type of repeat() is not specific enough. Solution: Return the type of the first argument. (closes https://github.com/vim/vim/issues/6395)
author Bram Moolenaar <Bram@vim.org>
date Sun, 05 Jul 2020 16:15:03 +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