view src/which.sh @ 14567:7267c0d910fe v8.1.0297

patch 8.1.0297: MS-Windows: tests fail, Vim crashes commit https://github.com/vim/vim/commit/cea1f9ec5256755ad119526fea2ef6811f7b53cd Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 19 14:38:42 2018 +0200 patch 8.1.0297: MS-Windows: tests fail, Vim crashes Problem: MS-Windows: tests fail, Vim crashes. Solution: Fix long file name handling.
author Christian Brabandt <cb@256bit.org>
date Sun, 19 Aug 2018 14:45:04 +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