view src/which.sh @ 34861:e317d26b71fc

runtime(doc): Update documentation Commit: https://github.com/vim/vim/commit/c9ec20d94ea5c1ea263e70503e82abcdd27d3463 Author: RestorerZ <restorer@mail2k.ru> Date: Wed Apr 10 16:57:12 2024 +0200 runtime(doc): Update documentation - Add security e-mail for private bugreports - Remove mentioning of the voting feature closes: #14483 Signed-off-by: RestorerZ <restorer@mail2k.ru> Co-authored-by: Christian Brabandt <cb@256bit.org> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Wed, 10 Apr 2024 17:00: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