view src/which.sh @ 8724:e6d1608ca601 v7.4.1651

commit https://github.com/vim/vim/commit/780d4c3fff3c06baa3135a9f9739c56a0c280a94 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 25 17:21:19 2016 +0100 patch 7.4.1651 Problem: Some dead (MSDOS) code remains. Solution: Remove the unused lines. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Fri, 25 Mar 2016 17:30:12 +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