view src/which.sh @ 10514:1435e45ee6fa v8.0.0147

commit https://github.com/vim/vim/commit/6e450a57541676036203a72d40b2e604e938371e Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 6 20:03:58 2017 +0100 patch 8.0.0147: searchpair() fails when 'magic' is off Problem: searchpair() does not work when 'magic' is off. (Chris Paul) Solution: Add \m in the pattern. (Christian Brabandt, closes https://github.com/vim/vim/issues/1341)
author Christian Brabandt <cb@256bit.org>
date Fri, 06 Jan 2017 20: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