view src/which.sh @ 20879:0ab45b558621 v8.2.0991

patch 8.2.0991: cannot get window type for autocmd and preview window Commit: https://github.com/vim/vim/commit/0fe937fd8616fcd24b1b1ef2ab9f1657615dd22c Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 16 22:42:04 2020 +0200 patch 8.2.0991: cannot get window type for autocmd and preview window Problem: Cannot get window type for autocmd and preview window. Solution: Add types to win_gettype(). (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/6277)
author Bram Moolenaar <Bram@vim.org>
date Tue, 16 Jun 2020 22: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