view src/which.sh @ 14370:ceeeeb6b1fb0 v8.1.0200

patch 8.1.0200: spellbadword() not tested commit https://github.com/vim/vim/commit/872e451e8c326d5dd3062ef621fcbf0a4c5bef78 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 20 23:36:26 2018 +0200 patch 8.1.0200: spellbadword() not tested Problem: spellbadword() not tested. Solution: Add a test. (Dominique Pelle, closes https://github.com/vim/vim/issues/3235)
author Christian Brabandt <cb@256bit.org>
date Fri, 20 Jul 2018 23:45: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