view src/which.sh @ 19756:fe90a71a3fed v8.2.0434

patch 8.2.0434: MS-Windows with VTP: Normal color not working Commit: https://github.com/vim/vim/commit/a8bd3496380ceb32e544dfe39cb4d52e4943068c Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 23 21:45:29 2020 +0100 patch 8.2.0434: MS-Windows with VTP: Normal color not working Problem: MS-Windows with VTP: Normal color not working. Solution: After changing the Normal color update the VTP console color. (Nobuhiro Takasaki, closes #5836)
author Bram Moolenaar <Bram@vim.org>
date Mon, 23 Mar 2020 22: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