view src/which.sh @ 13300:803294329951 v8.0.1524

patch 8.0.1524: compiler warnings for uninitialized variables commit https://github.com/vim/vim/commit/9c8816bd306a003c2ac3dce161be3fef481c9902 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 19 21:50:42 2018 +0100 patch 8.0.1524: compiler warnings for uninitialized variables Problem: Compiler warnings for uninitialized variables. (Tony Mechelynck) Solution: Initialize variables.
author Christian Brabandt <cb@256bit.org>
date Mon, 19 Feb 2018 22:00:07 +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