view src/which.sh @ 31792:5369ce341633 v9.0.1228

patch 9.0.1228: fuzzy menu completion is only tested in the GUI Commit: https://github.com/vim/vim/commit/145a6afe3a4be54689af5233710c85346ba1e5da Author: zeertzjq <zeertzjq@outlook.com> Date: Sun Jan 22 12:41:55 2023 +0000 patch 9.0.1228: fuzzy menu completion is only tested in the GUI Problem: Fuzzy menu completion is only tested in the GUI. Solution: Make fuzzy menu completion test work without GUI. (closes #11861)
author Bram Moolenaar <Bram@vim.org>
date Sun, 22 Jan 2023 13: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