view src/which.sh @ 20760:813b9a7064a4 v8.2.0932

patch 8.2.0932: missspelling spelllang Commit: https://github.com/vim/vim/commit/f154f3ab2c1eea67afc20140c580ad003752dc72 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 8 18:54:49 2020 +0200 patch 8.2.0932: missspelling spelllang Problem: Missspelling spelllang. Solution: Add an "l". (Dominique Pelle)
author Bram Moolenaar <Bram@vim.org>
date Mon, 08 Jun 2020 19:00: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