view src/which.sh @ 11672:3c6cc2f24645 v8.0.0719

patch 8.0.0719: build failure without +terminal feature commit https://github.com/vim/vim/commit/c0aa482a5add1e1125fd983d62c67a182c76ae24 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 16 14:04:29 2017 +0200 patch 8.0.0719: build failure without +terminal feature Problem: Build failure without +terminal feature. Solution: Add #ifdefs.
author Christian Brabandt <cb@256bit.org>
date Sun, 16 Jul 2017 14:15:03 +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