view src/which.sh @ 11539:f7ba69508fd5 v8.0.0652

patch 8.0.0652: unicode information is outdated commit https://github.com/vim/vim/commit/383aa84c0d3456c12987ba7e12042dcffba0eac6 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 22 15:27:37 2017 +0200 patch 8.0.0652: unicode information is outdated Problem: Unicode information is outdated. Solution: Update to Unicode 10. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Thu, 22 Jun 2017 15:30:03 +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