view src/which.sh @ 17399:859ac3df0b1f v8.1.1698

patch 8.1.1698: Appveyor build with MSVC fails commit https://github.com/vim/vim/commit/5d6844566a5dcb506c6d146f7e46f7e7d09220ae Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jul 15 22:03:40 2019 +0200 patch 8.1.1698: Appveyor build with MSVC fails Problem: Appveyor build with MSVC fails. Solution: Remove the sed command
author Bram Moolenaar <Bram@vim.org>
date Mon, 15 Jul 2019 22:15: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