aboutsummaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2021-04-02 22:29:28 +0200
committerOliver Kiddle <opk@zsh.org>2021-04-03 00:58:18 +0200
commit714864a87b11b080da92dee7abc29b8bc64107a5 (patch)
tree0788c91b2fba25d441d83e23f33c746ce7f573de /Doc
parentad7948611c96596e585bc93642d9975224525092 (diff)
downloadzsh-714864a87b11b080da92dee7abc29b8bc64107a5.tar.gz
zsh-714864a87b11b080da92dee7abc29b8bc64107a5.tar.xz
zsh-714864a87b11b080da92dee7abc29b8bc64107a5.zip
48356: clarify (the intended) behaviour for the two anchor forms of matching control
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/compwid.yo9
1 files changed, 7 insertions, 2 deletions
diff --git a/Doc/Zsh/compwid.yo b/Doc/Zsh/compwid.yo
index 0b98d07b2..3e86d3b42 100644
--- a/Doc/Zsh/compwid.yo
+++ b/Doc/Zsh/compwid.yo
@@ -959,6 +959,9 @@ As tt(l), tt(L), tt(b) and tt(B), with the difference that the command
line and trial completion patterns are anchored on the right side.
Here an empty var(ranchor) and the tt(e) and tt(E) forms force the
match to the end of the command line or trial completion string.
+
+In the form where var(lanchor) is given, the var(lanchor) only needs
+to match the trial completion string.
)
item(tt(x:))(
This form is used to mark the end of matching specifications:
@@ -1022,8 +1025,10 @@ any number of characters in the trial completion. In this case the
pattern must be anchored (on either side); in the case of a single
star, the var(anchor) then determines how much of the trial completion
is to be included DASH()- only the characters up to the next appearance of
-the anchor will be matched. With two stars, substrings matched by the
-anchor can be matched, too.
+the anchor will be matched. With two stars, substrings matched by
+the anchor can be matched, too. In the forms that include two
+anchors, `tt(*)' can match characters from the additional anchor
+DASH()- var(lanchor) with tt(r) or var(ranchor) with tt(l).
Examples: