view src/which.sh @ 29587:d70f588baaa1 v9.0.0134

patch 9.0.0134: no test for text property with column zero Commit: https://github.com/vim/vim/commit/f05a1e59a3df759667f2082cf42368945c57e389 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 2 11:48:53 2022 +0100 patch 9.0.0134: no test for text property with column zero Problem: No test for text property with column zero. Solution: Add a test. Add message to assert for no open popups.
author Bram Moolenaar <Bram@vim.org>
date Tue, 02 Aug 2022 13:00:06 +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