view src/which.sh @ 16257:7ae072701f6a v8.1.1133

patch 8.1.1133: compiler warning for uninitialized struct member commit https://github.com/vim/vim/commit/08499f5a4d24cb7298b9730a22b2f84f2207c4d0 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 7 11:56:49 2019 +0200 patch 8.1.1133: compiler warning for uninitialized struct member Problem: Compiler warning for uninitialized struct member. (Yegappan Lakshmanan) Solution: Add initializer field.
author Bram Moolenaar <Bram@vim.org>
date Sun, 07 Apr 2019 12: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