view src/which.sh @ 15533:08604d82fc9e v8.1.0774

patch 8.1.0774: VMS build is missing the blob file commit https://github.com/vim/vim/commit/05a2907cde00ac3ccff01c59978f174c020cc375 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 18 22:59:53 2019 +0100 patch 8.1.0774: VMS build is missing the blob file Problem: VMS build is missing the blob file. Solution: Add the blob file to the build rules. (Zoltan Arpadffy)
author Bram Moolenaar <Bram@vim.org>
date Fri, 18 Jan 2019 23:00:08 +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