view src/which.sh @ 12614:12f4408c7f69 v8.0.1185

patch 8.0.1185: Ruby library includes minor version number commit https://github.com/vim/vim/commit/9202162c5c069c925b6b9bf84e546fbd362cdf46 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Oct 12 12:33:43 2017 +0200 patch 8.0.1185: Ruby library includes minor version number Problem: Ruby library includes minor version number. Solution: Only use the API version number. (Ben Boeckel, closes https://github.com/vim/vim/issues/2199)
author Christian Brabandt <cb@256bit.org>
date Thu, 12 Oct 2017 12:45:07 +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