view src/which.sh @ 28844:c0403cd5ca06 v8.2.4945

patch 8.2.4945: inconsistent use of white space Commit: https://github.com/vim/vim/commit/9f1983de4e8293bae32fdab72a459b1b64bf767f Author: Bram Moolenaar <Bram@vim.org> Date: Thu May 12 20:35:35 2022 +0100 patch 8.2.4945: inconsistent use of white space Problem: Inconsistent use of white space. Solution: Use Tabs and Spaces consistently.
author Bram Moolenaar <Bram@vim.org>
date Thu, 12 May 2022 21:45:06 +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