view src/which.sh @ 8035:f48041801aac v7.4.1312

commit https://github.com/vim/vim/commit/f8b7d890f1d62f3ab101d2b02dd7716cb7f053cb Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 13 17:24:26 2016 +0100 patch 7.4.1312 Problem: sock_T is not defined without the +channel feature. Solution: Always define it.
author Christian Brabandt <cb@256bit.org>
date Sat, 13 Feb 2016 17: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