view src/which.sh @ 13355:0bc67f4e2947 v8.0.1551

patch 8.0.1551: on Mac 'maxmemtot' is set to a weird value commit https://github.com/vim/vim/commit/988615f26f262d9ef6472c53b48868968a6b6d16 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 27 17:58:20 2018 +0100 patch 8.0.1551: on Mac 'maxmemtot' is set to a weird value Problem: On Mac 'maxmemtot' is set to a weird value. Solution: For Mac use total memory and subtract system memory. For other systems accept both a 32 bit and 64 bit result. (Ozaki Kiichi, closes #2646)
author Christian Brabandt <cb@256bit.org>
date Tue, 27 Feb 2018 18:00: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