view src/which.sh @ 28421:0e4097e7a714 v8.2.4735

patch 8.2.4735: quickfix tests can be a bit hard to read Commit: https://github.com/vim/vim/commit/4a7724a4406f639edd3f93f3542626811cf56719 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Mon Apr 11 15:11:39 2022 +0100 patch 8.2.4735: quickfix tests can be a bit hard to read Problem: Quickfix tests can be a bit hard to read. Solution: Use heredoc instead of strings and line continuation. (Yegappan Lakshmanan, closes #10145)
author Bram Moolenaar <Bram@vim.org>
date Mon, 11 Apr 2022 16:15: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