view src/which.sh @ 13284:a69636c63103 v8.0.1516

patch 8.0.1516: errors for job options are not very specific commit https://github.com/vim/vim/commit/b3292fa2d362b064ff8a115fc0ad794c1f1265d7 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 13 15:17:58 2018 +0100 patch 8.0.1516: errors for job options are not very specific Problem: Errors for job options are not very specific. Solution: Add more specific error messages.
author Christian Brabandt <cb@256bit.org>
date Tue, 13 Feb 2018 15:30:07 +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