view src/which.sh @ 17500:b7d85c5af64e v8.1.1748

patch 8.1.1748: :args output is not aligned commit https://github.com/vim/vim/commit/74da39373c90fcb390068903b5bbb93ce7ac16fa Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 25 21:52:39 2019 +0200 patch 8.1.1748: :args output is not aligned Problem: :args output is not aligned. Solution: Output a line break after the last item in a row.
author Bram Moolenaar <Bram@vim.org>
date Thu, 25 Jul 2019 22: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