about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2014-06-01 14:18:21 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2014-06-01 14:18:21 -0700
commit10ae77c0cfee1e15fe062ee5a6d8a4b31304d58a (patch)
tree98f365155cfee78015cef217bcdabd9e8b272cc6 /Doc
parent501f2003a89673cebc956ec5aa5f4f401b3a8f5f (diff)
downloadzsh-10ae77c0cfee1e15fe062ee5a6d8a4b31304d58a.tar.gz
zsh-10ae77c0cfee1e15fe062ee5a6d8a4b31304d58a.tar.xz
zsh-10ae77c0cfee1e15fe062ee5a6d8a4b31304d58a.zip
users/18857: add (Y) glob qualifier to generate only one match per pattern
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/expn.yo4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index 6de73ea93..25247f9c6 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -2564,6 +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(o)var(c))(
 specifies how the names of the files should be sorted. If var(c) is
 tt(n) they are sorted by name (the default); if it is tt(L) they