view src/which.sh @ 26988:bef1f0167251 v8.2.4023

patch 8.2.4023: using uninitialized variable Commit: https://github.com/vim/vim/commit/a909c48bec1f7ae13a9143b5d627c40cac5b240e Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 6 22:07:57 2022 +0000 patch 8.2.4023: using uninitialized variable Problem: Using uninitialized variable. Solution: Initialize "ufunc" also when an item is not exported.
author Bram Moolenaar <Bram@vim.org>
date Thu, 06 Jan 2022 23:15: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