view src/which.sh @ 7941:98644de08f15 v7.4.1266

commit https://github.com/vim/vim/commit/ab9fc7e0cf22bcee119b62d3433cac60f405e645 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 6 15:29:40 2016 +0100 patch 7.4.1266 Problem: A BufAdd autocommand may cause an ml_get error (Christian Brabandt) Solution: Increment RedrawingDisabled earlier.
author Christian Brabandt <cb@256bit.org>
date Sat, 06 Feb 2016 15:30:04 +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