view src/which.sh @ 20201:304015471ae9 v8.2.0656

patch 8.2.0656: MS-Windows: redrawing right screen edge may not be needed Commit: https://github.com/vim/vim/commit/7ed8f59ae09278c666f1b43488351f9450097372 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 28 20:44:42 2020 +0200 patch 8.2.0656: MS-Windows: redrawing right screen edge may not be needed Problem: MS-Windows: redrawing right screen edge may not be needed. Solution: Check the build version. (Nobuhiro Takasaki, closes https://github.com/vim/vim/issues/6002)
author Bram Moolenaar <Bram@vim.org>
date Tue, 28 Apr 2020 20:45:04 +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