view src/which.sh @ 25016:e321dbddc076 v8.2.3045

patch 8.2.3045: minor typos Commit: https://github.com/vim/vim/commit/98703d7f6c9a0ef9e54cb291a92342b9f96db732 Author: Christian Brabandt <cb@256bit.org> Date: Thu Jun 24 19:55:27 2021 +0200 patch 8.2.3045: minor typos Problem: Minor typos. Solution: Fix the typos. (Christian Brabandt, closes https://github.com/vim/vim/issues/8441)
author Bram Moolenaar <Bram@vim.org>
date Thu, 24 Jun 2021 20: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