view src/which.sh @ 29548:6f9e21c30d7e v9.0.0115

patch 9.0.0115: when 'cmdheight' is zero pressing ':' may scroll a window Commit: https://github.com/vim/vim/commit/6747cf1671bd41cddee77c65b3f9a70509f968db Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 30 19:10:06 2022 +0100 patch 9.0.0115: when 'cmdheight' is zero pressing ':' may scroll a window Problem: When 'cmdheight' is zero pressing ':' may scroll a window. Solution: Add the made_cmdheight_nonzero flag and set 'scrolloff' to zero.
author Bram Moolenaar <Bram@vim.org>
date Sat, 30 Jul 2022 20:15:03 +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