view src/which.sh @ 30013:11cfe4c6d677 v9.0.0344

patch 9.0.0344: MS-Windows: background color wrong in Console Commit: https://github.com/vim/vim/commit/e42c8dae32f3575557b83a371c4be66c09afbf7f Author: Yasuhiro Matsumoto <mattn.jp@gmail.com> Date: Thu Sep 1 11:31:45 2022 +0100 patch 9.0.0344: MS-Windows: background color wrong in Console Problem: MS-Windows: background color wrong in Console. Solution: Figure out the default console background color. (Yasuhiro Matsumoto, issue #10310)
author Bram Moolenaar <Bram@vim.org>
date Thu, 01 Sep 2022 12:45: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