view src/which.sh @ 13714:84e96a40b7ca v8.0.1729

patch 8.0.1729: no comma after last enum item commit https://github.com/vim/vim/commit/ea3ece405ab55f44018257bd2f5021231af8e87f Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 17 20:14:39 2018 +0200 patch 8.0.1729: no comma after last enum item Problem: No comma after last enum item. Solution: Add a few commas to check if this works for all compilers. Also add a few // comments.
author Christian Brabandt <cb@256bit.org>
date Tue, 17 Apr 2018 20:15:07 +0200
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