view src/which.sh @ 8124:310dd635e8c9 v7.4.1356

commit https://github.com/vim/vim/commit/40ea1da14ba196a23309789852e1b663fd92e3a8 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 19 22:33:35 2016 +0100 patch 7.4.1356 Problem: Job and channel options parsing is scattered. Solution: Move all option value parsing to get_job_options();
author Christian Brabandt <cb@256bit.org>
date Fri, 19 Feb 2016 22:45: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