view src/which.sh @ 11541:3bc4fb330d07 v8.0.0653

patch 8.0.0653: the default highlight for QuickFixLine is not good commit https://github.com/vim/vim/commit/c768a208ca8e0e0fec900c18d5d9a593357ad793 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 22 16:04:27 2017 +0200 patch 8.0.0653: the default highlight for QuickFixLine is not good Problem: The default highlight for QuickFixLine does not work for several color schemes. (Manas Thakur) Solution: Make the default use the old color. (closes #1780)
author Christian Brabandt <cb@256bit.org>
date Thu, 22 Jun 2017 16:15:03 +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