view src/which.sh @ 9155:e4d7e6d1a0f1 v7.4.1861

commit https://github.com/vim/vim/commit/b055066a1daf12c349d6c575aff22ae4d999a157 Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 31 21:37:36 2016 +0200 patch 7.4.1861 Problem: Compiler warnings with 64 bit compiler. Solution: Change int to size_t. (Mike William)
author Christian Brabandt <cb@256bit.org>
date Tue, 31 May 2016 21:45:05 +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