view src/which.sh @ 16370:235a2b941498 v8.1.1190

patch 8.1.1190: has('vimscript-3') does not work commit https://github.com/vim/vim/commit/93a4879c2008bbd26aac072e7cdc65b3ce7c32a3 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 20 21:54:28 2019 +0200 patch 8.1.1190: has('vimscript-3') does not work Problem: has('vimscript-3') does not work. Solution: Add "vimscript-3" to the list of features.
author Bram Moolenaar <Bram@vim.org>
date Sat, 20 Apr 2019 22:00: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