view src/which.sh @ 11087:242e0617aa51 v8.0.0431

patch 8.0.0431: 'cinoptions' cannot set indent for extern block commit https://github.com/vim/vim/commit/7720ba8599162fbbb8f7fc034f674a2ccd3ca7f1 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 8 22:19:26 2017 +0100 patch 8.0.0431: 'cinoptions' cannot set indent for extern block Problem: 'cinoptions' cannot set indent for extern block. Solution: Add the "E" flag in 'cinoptions'. (Hirohito Higashi)
author Christian Brabandt <cb@256bit.org>
date Wed, 08 Mar 2017 22:30:05 +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