From 43ba45ce62100bc1dbc9b04b5d869f59026783f5 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Wed, 6 May 2020 19:55:17 +0100 Subject: Numeric variable returns --- doc/doc-docbook/spec.xfpt | 6 +++++- doc/doc-txt/NewStuff | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/doc-docbook/spec.xfpt b/doc/doc-docbook/spec.xfpt index 33e07db0a..c55dff0af 100644 --- a/doc/doc-docbook/spec.xfpt +++ b/doc/doc-docbook/spec.xfpt @@ -8545,7 +8545,7 @@ In today's Internet, the use of domain literals is controversial; see the &%allow_domain_literals%& main option. .new -The value for a match will be the &`@[]`& string. +The value for a match will be the string &`@[]`&. .wen @@ -8616,6 +8616,8 @@ list item such as &`*key.ex`& matches &'donkey.ex'& as well as .new The value for a match will be the list element string (starting with the asterisk). +Additionally, &$0$& will be set to the matched string +and &$1$& to the variable portion which the asterisk matched. .wen .next @@ -8637,6 +8639,8 @@ expression by expansion, of course). .new The value for a match will be the list element string (starting with the circumflex). +Additionally, &$0$& will be set to the string matching the regular expression, +and &$1$& (onwards) to any submatches identified by parentheses. .wen diff --git a/doc/doc-txt/NewStuff b/doc/doc-txt/NewStuff index 493244ff1..cf142afb6 100644 --- a/doc/doc-txt/NewStuff +++ b/doc/doc-txt/NewStuff @@ -63,6 +63,11 @@ Version 4.94 19. bounce_message_file and warn_message_file are now expanded before use. +20. $domain_data and $localpart_data are now set by all list-match successes. + Previously only list items that performed lookups did so. + Also, matching list items that are tail-match or RE-match now set the + numeric variables $0 (etc) in the same way os other RE matches. + Version 4.93 -- cgit v1.2.3