From 9381bb6a2d3abd4a4c6871b5676f9fb04f42d921 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Tue, 3 Jun 2014 23:46:07 -0700 Subject: 32694: the number of matches to find is the suffix argument of (Y) qualifier --- Doc/Zsh/expn.yo | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Doc') 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 -- cgit 1.4.1