view src/which.sh @ 34253:efc8334c1d77 v9.1.0067

patch 9.1.0067: gcc still complains about use of uninitialized var Commit: https://github.com/vim/vim/commit/e1cd1fda6990d612bd8f27d78f4f5d747c2dc537 Author: Christian Brabandt <cb@256bit.org> Date: Wed Jan 31 22:10:50 2024 +0100 patch 9.1.0067: gcc still complains about use of uninitialized var Problem: gcc still complains about use of uninitialized var ((Tony Mechelynck, after 9.1.0064/9.1.0066)) Solution: This time init the correct variable Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Wed, 31 Jan 2024 22:30:03 +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