view src/which.sh @ 25832:be15ebb4098c v8.2.3451

patch 8.2.3451: not all apache files are recognized Commit: https://github.com/vim/vim/commit/770ddbe1595f6dab836304203d5ca2e0b069266f Author: Zdenek Dohnal <zdohnal@redhat.com> Date: Mon Sep 20 20:57:31 2021 +0200 patch 8.2.3451: not all apache files are recognized Problem: Not all apache files are recognized. Solution: Adjust the filetype pattern. (Zdenek Dohnal, closes https://github.com/vim/vim/issues/8882)
author Bram Moolenaar <Bram@vim.org>
date Mon, 20 Sep 2021 21:00:07 +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