view src/which.sh @ 16142:570a296aa0b4 v8.1.1076

patch 8.1.1076: file for Insert mode is much too big commit https://github.com/vim/vim/commit/7591bb39d58ece38a5fef984a08ea9012616c1f9 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 30 13:53:47 2019 +0100 patch 8.1.1076: file for Insert mode is much too big Problem: File for Insert mode is much too big. Solution: Split off the code for Insert completion. (Yegappan Lakshmanan, closes #4044)
author Bram Moolenaar <Bram@vim.org>
date Sat, 30 Mar 2019 14:00:07 +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