view src/which.sh @ 21544:6c67c86a202a v8.2.1322

patch 8.2.1322: Vim9: method on double quoted string doesn't work Commit: https://github.com/vim/vim/commit/1040956292a9f2c3d02fc08febd5acf349c85590 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jul 29 20:00:38 2020 +0200 patch 8.2.1322: Vim9: method on double quoted string doesn't work Problem: Vim9: method on double quoted string doesn't work. Solution: Recognize double quoted string. (closes https://github.com/vim/vim/issues/6562)
author Bram Moolenaar <Bram@vim.org>
date Wed, 29 Jul 2020 20:15: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