view src/which.sh @ 7910:e873010fb658 v7.4.1251

commit https://github.com/vim/vim/commit/bf087cead956513bcd8d40d70322875c479a1984 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 3 21:56:42 2016 +0100 patch 7.4.1251 Problem: New test file missing from distribution. Solution: Add src/testdir/*.py.
author Christian Brabandt <cb@256bit.org>
date Wed, 03 Feb 2016 22:00: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