view src/which.sh @ 16435:65d5f7039131 v8.1.1222

patch 8.1.1222: build still fails on MS-Windows commit https://github.com/vim/vim/commit/dcaa54dded7c7ef9b2217a205d23301d313e96dc Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 27 22:45:00 2019 +0200 patch 8.1.1222: build still fails on MS-Windows Problem: Build still fails on MS-Windows. Solution: Move another declaration to start of block.
author Bram Moolenaar <Bram@vim.org>
date Sat, 27 Apr 2019 23:00: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