view src/which.sh @ 25976:7b2e2b9617ee v8.2.3521

patch 8.2.3521: options completion test fails Commit: https://github.com/vim/vim/commit/abdcfd1c837e244065d4fe04c7a78abae5af3f7e Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 16 16:48:27 2021 +0100 patch 8.2.3521: options completion test fails Problem: Options completion test fails. Solution: Add 'thesaurusfunc' to the results.
author Bram Moolenaar <Bram@vim.org>
date Sat, 16 Oct 2021 18:00:05 +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