view src/which.sh @ 29956:451ec8a09a63 v9.0.0316

patch 9.0.0316: screen flickers when 'cmdheight' is zero Commit: https://github.com/vim/vim/commit/f73e5ba56f4aca1cd6e38f1c8ea24e941bf6b33f Author: Bram Moolenaar <Bram@vim.org> Date: Mon Aug 29 12:41:06 2022 +0100 patch 9.0.0316: screen flickers when 'cmdheight' is zero Problem: Screen flickers when 'cmdheight' is zero. Solution: Redraw over existing text instead of clearing.
author Bram Moolenaar <Bram@vim.org>
date Mon, 29 Aug 2022 13:45: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