view src/which.sh @ 29948:29e4cd9e66de v9.0.0312

patch 9.0.0312: test for cmdheight zero fails Commit: https://github.com/vim/vim/commit/98d1069a9cc6f1b439be154aeae0ed32a598e855 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Aug 29 00:08:39 2022 +0100 patch 9.0.0312: test for cmdheight zero fails Problem: Test for cmdheight zero fails. Solution: Do not close the messages window for CTRL-C.
author Bram Moolenaar <Bram@vim.org>
date Mon, 29 Aug 2022 01:15: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