view src/which.sh @ 12930:e2612e03d46f v8.0.1341

patch 8.0.1341: 'imactivatefunc' test fails on MS-Windows commit https://github.com/vim/vim/commit/be5d998d0ea2226f1f7180c32b19df17ad674853 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 25 17:58:28 2017 +0100 patch 8.0.1341: 'imactivatefunc' test fails on MS-Windows Problem: 'imactivatefunc' test fails on MS-Windows. Solution: Skip the text.
author Christian Brabandt <cb@256bit.org>
date Sat, 25 Nov 2017 18:00:06 +0100
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