view src/which.sh @ 17405:8292b2dde464 v8.1.1701

patch 8.1.1701: Appveyor build with MSVC fails puts progress bar in log commit https://github.com/vim/vim/commit/7ce2aa01c2e78f762f68c1c8df64649d790365e2 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jul 16 20:00:11 2019 +0200 patch 8.1.1701: Appveyor build with MSVC fails puts progress bar in log Problem: Appveyor build with MSVC fails puts progress bar in log. Solution: Adjust the sed command. (Ken Takata)
author Bram Moolenaar <Bram@vim.org>
date Tue, 16 Jul 2019 20:15:06 +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