view src/which.sh @ 20207:3c247d9cd6f9 v8.2.0659

patch 8.2.0659: Vim9: no test for equal func type Commit: https://github.com/vim/vim/commit/939b5db4808770d3a2ec35e3902a9d5165adc0cf Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 28 22:49:08 2020 +0200 patch 8.2.0659: Vim9: no test for equal func type Problem: Vim9: no test for equal func type. Solution: Add a test. Improve type check.
author Bram Moolenaar <Bram@vim.org>
date Tue, 28 Apr 2020 23:00:04 +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