view src/which.sh @ 24333:47d55d8a93c9 v8.2.2707

patch 8.2.2707: adding a lot of completions can still be a bit slow Commit: https://github.com/vim/vim/commit/ceb06194337f1a9d30cd12edb7b0dc51830b9cb7 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 4 15:05:22 2021 +0200 patch 8.2.2707: adding a lot of completions can still be a bit slow Problem: Adding a lot of completions can still be a bit slow. Solution: Add the check for CP_FAST. (Ben Jackson)
author Bram Moolenaar <Bram@vim.org>
date Sun, 04 Apr 2021 15:15:04 +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