view src/which.sh @ 27885:dd804c17e7e3 v8.2.4468

patch 8.2.4468: Coverity warns for uninitialized struct member Commit: https://github.com/vim/vim/commit/68afde4c9b4379b757cc72112c33df9cf221eba8 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 25 20:48:26 2022 +0000 patch 8.2.4468: Coverity warns for uninitialized struct member Problem: Coverity warns for uninitialized struct member. Solution: Set color.index to zero.
author Bram Moolenaar <Bram@vim.org>
date Fri, 25 Feb 2022 22:00: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