view src/which.sh @ 15152:1ef429366fd4 v8.1.0586

patch 8.1.0586: :digraph output is not easy to read commit https://github.com/vim/vim/commit/eae8ae1b2b4e532b125077d9838b70d966891be3 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 14 18:53:02 2018 +0100 patch 8.1.0586: :digraph output is not easy to read Problem: :digraph output is not easy to read. Solution: Add highlighting for :digraphs. (Marcin Szamotulski, closes https://github.com/vim/vim/issues/3572) Also add section headers for :digraphs!.
author Bram Moolenaar <Bram@vim.org>
date Fri, 14 Dec 2018 19:00:05 +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