view src/which.sh @ 12198:65cff399750b v8.0.0979

patch 8.0.0979: terminal noblock test fails on MS-Windows commit https://github.com/vim/vim/commit/eef0531621c8d4045d669eb815b051d925983df8 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 20 20:21:23 2017 +0200 patch 8.0.0979: terminal noblock test fails on MS-Windows Problem: Terminal noblock test fails on MS-Windows. (Christian Brabandt) Solution: Ignore empty line below "done".
author Christian Brabandt <cb@256bit.org>
date Sun, 20 Aug 2017 20:30:03 +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