view src/which.sh @ 15784:703220741ed1 v8.1.0899

patch 8.1.0899: no need to check restricted mode for setwinvar() commit https://github.com/vim/vim/commit/e0fb7d1e38e1cf699412e212cda863420f5f8bd2 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 12 20:48:10 2019 +0100 patch 8.1.0899: no need to check restricted mode for setwinvar() Problem: No need to check restricted mode for setwinvar(). Solution: Remove check_restricted().
author Bram Moolenaar <Bram@vim.org>
date Tue, 12 Feb 2019 21:00:15 +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