about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-01-27 09:55:22 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-01-27 09:55:22 +0000
commit7c43fb69bf81dd37c0743a761c6b43519ea9a0d0 (patch)
tree4d060057081de5ffc051dc551901a9e71894f115 /Doc
parent6f16f59b9f0f1835f303eeeffcea3f981fcd8d92 (diff)
downloadzsh-7c43fb69bf81dd37c0743a761c6b43519ea9a0d0.tar.gz
zsh-7c43fb69bf81dd37c0743a761c6b43519ea9a0d0.tar.xz
zsh-7c43fb69bf81dd37c0743a761c6b43519ea9a0d0.zip
26448: add glob sort operators oe and o+
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/expn.yo12
1 files changed, 11 insertions, 1 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index ec92a34b9..1468a3a36 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -2229,7 +2229,7 @@ pindex(NUMERIC_GLOB_SORT, setting in pattern)
 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
-are sorted depending on the size (length) of the files; if tt(l) 
+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
 inode change respectively; if tt(d), files in subdirectories appear before
@@ -2242,6 +2242,16 @@ youngest file. Also note that the modifiers tt(^) and tt(-) are used,
 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.
+
+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
+the parameter tt(REPLY) set to the name of the file on entry.  The code
+should modify the parameter tt(REPLY) in some fashion.  On return, the value
+of the parameter is used instead of the file name as the string on which to
+sort.  Unlike other sort operators, tt(oe) and tt(o+) may be repeated, but
+note that the maximum number of sort operators of any kind that may appear
+in any glob expression is 12.
 )
 item(tt(O)var(c))(
 like `tt(o)', but sorts in descending order; i.e. `tt(*(^oc))' is the