From 10ae77c0cfee1e15fe062ee5a6d8a4b31304d58a Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Sun, 1 Jun 2014 14:18:21 -0700 Subject: users/18857: add (Y) glob qualifier to generate only one match per pattern --- Doc/Zsh/expn.yo | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Doc') 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 -- cgit 1.4.1