view src/which.sh @ 23301:194e1fe08554 v8.2.2196

patch 8.2.2196: :version output has extra spaces in compile and link command Commit: https://github.com/vim/vim/commit/abcbb0e9ad43fc25077e1681528e72ddcbeed300 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Dec 23 12:33:42 2020 +0100 patch 8.2.2196: :version output has extra spaces in compile and link command Problem: :version output has extra spaces in compile and link command. Solution: Adjust QUOTESED. (closes https://github.com/vim/vim/issues/7505)
author Bram Moolenaar <Bram@vim.org>
date Wed, 23 Dec 2020 12:45:07 +0100
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