view src/which.sh @ 10712:74f2182dc1d9 v8.0.0246

patch 8.0.0246: compiler warnings for int to pointer conversion commit https://github.com/vim/vim/commit/3a118be1501549a7a9b8f52618fd0a967470d0a1 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 27 21:22:19 2017 +0100 patch 8.0.0246: compiler warnings for int to pointer conversion Problem: Compiler warnings for int to pointer conversion. Solution: Fix macro for mch_memmove(). (John Marriott)
author Christian Brabandt <cb@256bit.org>
date Fri, 27 Jan 2017 21: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