view src/which.sh @ 15890:de2c2a378cd1 v8.1.0951

patch 8.1.0951: using WIN64 even though it is never defined commit https://github.com/vim/vim/commit/44b443c5db7a372b2da519be15dd962c552e1355 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 18 22:14:18 2019 +0100 patch 8.1.0951: using WIN64 even though it is never defined Problem: Using WIN64 even though it is never defined. Solution: Only use _WIN64. (Ken Takata, closes https://github.com/vim/vim/issues/3997)
author Bram Moolenaar <Bram@vim.org>
date Mon, 18 Feb 2019 22:15:08 +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