view src/which.sh @ 15071:aabaf1499d05 v8.1.0546

patch 8.1.0546: modeline test with keymap fails commit https://github.com/vim/vim/commit/4ace6ab7e72151d78f1563b23b498ed20fa00211 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 25 04:25:58 2018 +0100 patch 8.1.0546: modeline test with keymap fails Problem: Modeline test with keymap fails. Solution: Check that the keymap feature is available.
author Bram Moolenaar <Bram@vim.org>
date Sun, 25 Nov 2018 04:30: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