view src/which.sh @ 30665:fe0a18141c3c v9.0.0667

patch 9.0.0667: ml_get error when 'splitkeep' is "screen" Commit: https://github.com/vim/vim/commit/346823d3e5668b99d2c2fd920e7f215e21ad3ea7 Author: Luuk van Baal <luukvbaal@gmail.com> Date: Wed Oct 5 18:26:42 2022 +0100 patch 9.0.0667: ml_get error when 'splitkeep' is "screen" Problem: ml_get error when 'splitkeep' is "screen". (Marius Gedminas) Solution: Check the botline is not too large. (Luuk van Baal, closes #11293, closes #11292)
author Bram Moolenaar <Bram@vim.org>
date Wed, 05 Oct 2022 19:30:02 +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