about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2014-06-03 23:46:07 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2014-06-03 23:46:07 -0700
commit9381bb6a2d3abd4a4c6871b5676f9fb04f42d921 (patch)
tree428f7a3e070e9a693424f0fdd91759b0f40a986a /Doc
parent5cfe18670c889ebe841fd50d12346350ef603d5c (diff)
downloadzsh-9381bb6a2d3abd4a4c6871b5676f9fb04f42d921.tar.gz
zsh-9381bb6a2d3abd4a4c6871b5676f9fb04f42d921.tar.xz
zsh-9381bb6a2d3abd4a4c6871b5676f9fb04f42d921.zip
32694: the number of matches to find is the suffix argument of (Y) qualifier
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/expn.yo7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index 25247f9c6..2f91fec9d 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -2564,9 +2564,10 @@ item(tt(n))(
 sets the tt(NUMERIC_GLOB_SORT) option for the current pattern
 pindex(NUMERIC_GLOB_SORT, setting in pattern)
 )
-item(tt(Y))(
-enables short-circuit mode: the pattern will expand to just the first
-matching filename, if any.
+item(tt(Y)var(n))(
+enables short-circuit mode: the pattern will expand to at most var(n)
+filenames.  If more than var(n) matches exist, only the first var(n)
+matches in directory traversal order will be considered.
 )
 item(tt(o)var(c))(
 specifies how the names of the files should be sorted. If var(c) is