about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2023-10-31 01:04:19 +0100
committerOliver Kiddle <opk@zsh.org>2023-11-02 14:54:59 +0100
commitde635b4ee56c188ccbaf0009027f9d1c0d42af0f (patch)
treef45a398d019bb7aed4aa02093d5ae0af7ddbe5b9 /Doc
parenta9b0ccd661db7292a4ab52b3ffe6fbc8dc8ade4f (diff)
downloadzsh-de635b4ee56c188ccbaf0009027f9d1c0d42af0f.tar.gz
zsh-de635b4ee56c188ccbaf0009027f9d1c0d42af0f.tar.xz
zsh-de635b4ee56c188ccbaf0009027f9d1c0d42af0f.zip
52253: support pcre callouts with shell evaluation of the callout string
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/mod_pcre.yo5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/Zsh/mod_pcre.yo b/Doc/Zsh/mod_pcre.yo
index da73ac85a..41fab4475 100644
--- a/Doc/Zsh/mod_pcre.yo
+++ b/Doc/Zsh/mod_pcre.yo
@@ -69,6 +69,11 @@ print -l $accum)
 )
 enditem()
 
+If the regular expression contains callouts, these are executed as shell code.
+During the execution of the callout, the string the regular expression is
+matching against is available in the parameter tt(.pcre.subject). If there is a
+non-zero return status from the shell code, the callout does not match.
+
 The option tt(-d) uses the alternative breadth-first DFA search algorithm of
 pcre. This sets tt(match), or the array given with tt(-a), to all the matches
 found from the same start point in the subject.