view src/which.sh @ 27106:d7e6b85dd89d v8.2.4082

patch 8.2.4082: check for autoload file name and prefix fails Commit: https://github.com/vim/vim/commit/3049fcf0a189b0fea8468fa308887b8252d93dce Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 13 19:25:50 2022 +0000 patch 8.2.4082: check for autoload file name and prefix fails Problem: Check for autoload file name and prefix fails. (Christian J. Robinson) Solution: Only lower case the prefix on systems where the file name is not case sensitive.
author Bram Moolenaar <Bram@vim.org>
date Thu, 13 Jan 2022 20:30:06 +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