view src/which.sh @ 10255:b2c1b7acf92a v8.0.0025

commit https://github.com/vim/vim/commit/936c48f8ca82a0257640c8c9d0792538f5a7e813 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 9 15:50:48 2016 +0200 patch 8.0.0025 Problem: Inconsistent use of spaces vs tabs in gd test. Solution: Use tabs. (Anton Lindqvist)
author Christian Brabandt <cb@256bit.org>
date Sun, 09 Oct 2016 16:00:04 +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