diff options
| author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2014-06-01 14:18:21 -0700 |
|---|---|---|
| committer | Barton E. Schaefer <schaefer@zsh.org> | 2014-06-01 14:18:21 -0700 |
| commit | 10ae77c0cfee1e15fe062ee5a6d8a4b31304d58a (patch) | |
| tree | 98f365155cfee78015cef217bcdabd9e8b272cc6 /Doc | |
| parent | 32640: (#q) in [[ ... ]] forces globbing (diff) | |
| download | zsh-10ae77c0cfee1e15fe062ee5a6d8a4b31304d58a.tar zsh-10ae77c0cfee1e15fe062ee5a6d8a4b31304d58a.tar.gz zsh-10ae77c0cfee1e15fe062ee5a6d8a4b31304d58a.tar.bz2 zsh-10ae77c0cfee1e15fe062ee5a6d8a4b31304d58a.tar.lz zsh-10ae77c0cfee1e15fe062ee5a6d8a4b31304d58a.tar.xz zsh-10ae77c0cfee1e15fe062ee5a6d8a4b31304d58a.tar.zst 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.yo | 4 |
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 |
