From: Rich Bowen Date: Wed, 29 Apr 2026 14:42:52 +0000 (+0000) Subject: mod_macro: Fix Tips example to use $() instead of ${} to avoid conflict with Define... X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e2dcd66ebb01272fe0b22cc879306c9b884f9277;p=thirdparty%2Fapache%2Fhttpd.git mod_macro: Fix Tips example to use $() instead of ${} to avoid conflict with Define syntax (Bug 66153) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933496 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_macro.xml b/docs/manual/mod/mod_macro.xml index a2d3fada1f..5699e4d77e 100644 --- a/docs/manual/mod/mod_macro.xml +++ b/docs/manual/mod/mod_macro.xml @@ -112,11 +112,14 @@ cause confusion at expression evaluation time. In the event of such confusion, the longest possible parameter name is used.

If you want to use a value within another string, it is useful to -surround the parameter in braces, to avoid confusion:

+surround the parameter in parentheses, to avoid confusion. The +$(...) syntax should be used rather than +${...}, as the latter conflicts with the +Define variable syntax:

-<Macro DocRoot ${docroot}> - DocumentRoot "/var/www/${docroot}/htdocs" +<Macro DocRoot $(docroot)> + DocumentRoot "/var/www/$(docroot)/htdocs" </Macro>