view src/which.sh @ 9645:123d3c102035 v7.4.2099

commit https://github.com/vim/vim/commit/73ac0c4281a3606651604a3cbcc334bfb3859a87 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 24 16:17:59 2016 +0200 patch 7.4.2099 Problem: When a keymap is active only "(lang)" is displayed. (Ilya Dogolazky) Solution: Show the keymap name. (Dmitri Vereshchagin, closes https://github.com/vim/vim/issues/933)
author Christian Brabandt <cb@256bit.org>
date Sun, 24 Jul 2016 16:30: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