view src/which.sh @ 20111:f40231487a49 v8.2.0611

patch 8.2.0611: Vim9: no check for space before #comment Commit: https://github.com/vim/vim/commit/faac410409a8d693a0326ad9db42dca85419a391 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 20 17:46:14 2020 +0200 patch 8.2.0611: Vim9: no check for space before #comment Problem: Vim9: no check for space before #comment. Solution: Add space checks.
author Bram Moolenaar <Bram@vim.org>
date Mon, 20 Apr 2020 18:00: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