view src/which.sh @ 14447:f103c66ea515 v8.1.0237

patch 8.1.0237: Ruby on Cygwin doesn't always work commit https://github.com/vim/vim/commit/87ea64ca965ca00b3e72776c39355964293f2ace Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 4 15:13:34 2018 +0200 patch 8.1.0237: Ruby on Cygwin doesn't always work Problem: Ruby on Cygwin doesn't always work. Solution: Use LIBRUBY_SO if LIBRUBY_ALIASES isn't set. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Sat, 04 Aug 2018 15:15:05 +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