view src/which.sh @ 14153:01b7a627d403 v8.1.0094

patch 8.1.0094: help text "usage:" is not capatalized commit https://github.com/vim/vim/commit/32aaf5ae07af1d5befaf997688fde5d6637d43f8 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 21 21:38:33 2018 +0200 patch 8.1.0094: help text "usage:" is not capatalized Problem: Help text "usage:" is not capatalized. Solution: Make it "Usage:". (closes https://github.com/vim/vim/issues/3044)
author Christian Brabandt <cb@256bit.org>
date Thu, 21 Jun 2018 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