view src/which.sh @ 10424:bc97f64c21c2 v8.0.0106

commit https://github.com/vim/vim/commit/0945eaface83e78138fbd40f95cc590bab0e8c86 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Nov 29 22:10:48 2016 +0100 patch 8.0.0106 Problem: Cannot use a semicolon in 'backupext'. (Jeff) Solution: Allow for a few more characters when "secure" isn't set.
author Christian Brabandt <cb@256bit.org>
date Tue, 29 Nov 2016 22:15:03 +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