view src/which.sh @ 15663:61448894376e v8.1.0839

patch 8.1.0839: when using VTP wrong colors after a color scheme change commit https://github.com/vim/vim/commit/f58d81a18752cb9bf899b3f7328fc489cf6558e8 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 28 20:19:05 2019 +0100 patch 8.1.0839: when using VTP wrong colors after a color scheme change Problem: When using VTP wrong colors after a color scheme change. Solution: When VTP is active always clear after a color scheme change. (Nobuhiro Takasaki, closes #3872)
author Bram Moolenaar <Bram@vim.org>
date Mon, 28 Jan 2019 20:30: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