view src/which.sh @ 15496:f1c33409e908 v8.1.0756

patch 8.1.0756: copy() does not make a copy of a Blob commit https://github.com/vim/vim/commit/3d28b58c519c9fc3427587201423c74746cc219e Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 15 22:44:17 2019 +0100 patch 8.1.0756: copy() does not make a copy of a Blob Problem: copy() does not make a copy of a Blob. Solution: Make a copy.
author Bram Moolenaar <Bram@vim.org>
date Tue, 15 Jan 2019 22:45: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