view src/which.sh @ 28091:554f493902ea v8.2.4570

patch 8.2.4570: no command line completion for :profile and :profdel Commit: https://github.com/vim/vim/commit/1fdf84e033f8c4eead3b4ccebb1969cfbc7d10db Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Tue Mar 15 10:53:09 2022 +0000 patch 8.2.4570: no command line completion for :profile and :profdel Problem: No command line completion for :profile and :profdel. Solution: Implement completion. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/9955)
author Bram Moolenaar <Bram@vim.org>
date Tue, 15 Mar 2022 12: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