view src/which.sh @ 19127:0ee48dc3f8bc v8.2.0123

patch 8.2.0123: complete_info() does not work when CompleteDone is triggered Commit: https://github.com/vim/vim/commit/17e04781f26c24769e202351c194ee252927eee1 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 17 18:58:59 2020 +0100 patch 8.2.0123: complete_info() does not work when CompleteDone is triggered Problem: complete_info() does not work when CompleteDone is triggered. Solution: Trigger CompleteDone before clearing the info.
author Bram Moolenaar <Bram@vim.org>
date Fri, 17 Jan 2020 19:00: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