view src/which.sh @ 21036:f58ee30d863f v8.2.1069

patch 8.2.1069: Vim9: fail to check for white space in list Commit: https://github.com/vim/vim/commit/e6e031739c9d0c4140e371031b58a249db0eb572 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 27 16:36:05 2020 +0200 patch 8.2.1069: Vim9: fail to check for white space in list Problem: Vim9: fail to check for white space in list. Solution: Add check for white space.
author Bram Moolenaar <Bram@vim.org>
date Sat, 27 Jun 2020 16:45:05 +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