view src/which.sh @ 13876:156ebdcb8ef5 v8.0.1809

patch 8.0.1809: various typos commit https://github.com/vim/vim/commit/b9464821901623f983528acaed9e4dc2cea7387b Author: Bram Moolenaar <Bram@vim.org> Date: Thu May 10 15:09:49 2018 +0200 patch 8.0.1809: various typos Problem: Various typos. Solution: Correct the mistakes, change "cursur" to "cursor". (closes https://github.com/vim/vim/issues/2887)
author Christian Brabandt <cb@256bit.org>
date Thu, 10 May 2018 15:15:04 +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