diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2014-06-04 22:47:20 -0700 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2014-06-04 22:47:20 -0700 |
commit | 69378db3c53cea12d8c5f20380de5017e4e72611 (patch) | |
tree | ada7373380c4d7dc552c9ebc0cbe9cecc814aef2 /Doc/Zsh | |
parent | 9381bb6a2d3abd4a4c6871b5676f9fb04f42d921 (diff) | |
download | zsh-69378db3c53cea12d8c5f20380de5017e4e72611.tar.gz zsh-69378db3c53cea12d8c5f20380de5017e4e72611.tar.xz zsh-69378db3c53cea12d8c5f20380de5017e4e72611.zip |
32708: glob qualifier (Y) implies (oN)
plus incidental patch to avoid adding a meaningless bitvalue to sort-order flags
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/expn.yo | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo index 2f91fec9d..ff9f2b177 100644 --- a/Doc/Zsh/expn.yo +++ b/Doc/Zsh/expn.yo @@ -2568,10 +2568,12 @@ 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. + +Implies tt(oN) when no tt(o)var(c) qualifier is used. ) 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 +tt(n) they are sorted by name; if it is tt(L) they are sorted depending on the size (length) of the files; if tt(l) they are sorted by the number of links; if tt(a), tt(m), or tt(c) they are sorted by the time of the last access, modification, or @@ -2586,6 +2588,9 @@ so `tt(*(^-oL))' gives a list of all files sorted by file size in descending order, following any symbolic links. Unless tt(oN) is used, multiple order specifiers may occur to resolve ties. +The default sorting is tt(n) (by name) unless the tt(Y) glob qualifier is used, +in which case it is tt(N) (unsorted). + tt(oe) and tt(o+) are special cases; they are each followed by shell code, delimited as for the tt(e) glob qualifier and the tt(+) glob qualifier respectively (see above). The code is executed for each matched file with |