view src/which.sh @ 14991:ebabd6fe3833 v8.1.0507

patch 8.1.0507: .raml files not properly detected commit https://github.com/vim/vim/commit/da1c11c6411182e9a4bd4374e3fb8851fef77113 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 3 19:52:15 2018 +0100 patch 8.1.0507: .raml files not properly detected Problem: .raml files not properly detected. Solution: Recognize .raml as raml instead of yaml. (closes https://github.com/vim/vim/issues/3594)
author Bram Moolenaar <Bram@vim.org>
date Sat, 03 Nov 2018 20: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