view src/which.sh @ 15535:45a159f62dd0 v8.1.0775

patch 8.1.0775: matching too many files as zsh commit https://github.com/vim/vim/commit/2bf60b300188a7a733408a21a9716362ef4e2c44 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 18 23:14:43 2019 +0100 patch 8.1.0775: matching too many files as zsh Problem: Matching too many files as zsh. (Danek Duvall) Solution: Be more specific with zsh filetype patterns.
author Bram Moolenaar <Bram@vim.org>
date Fri, 18 Jan 2019 23:15:05 +0100
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