about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-03-18 11:22:08 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-03-18 11:22:08 +0000
commitbcdad28d3e03f3e70a5f3d6b414b9d08f651c65a (patch)
treeb2abaae8bc6cbc0e62a618809d887e1b21c3986e
parentd9e6352d40851ababe764a564907c19d182891c0 (diff)
downloadzsh-bcdad28d3e03f3e70a5f3d6b414b9d08f651c65a.tar.gz
zsh-bcdad28d3e03f3e70a5f3d6b414b9d08f651c65a.tar.xz
zsh-bcdad28d3e03f3e70a5f3d6b414b9d08f651c65a.zip
users/8609: document order of more parameter expansion flags
-rw-r--r--ChangeLog5
-rw-r--r--Doc/Zsh/expn.yo14
2 files changed, 16 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index e25eba8e3..9e3815e44 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-03-18  Peter Stephenson  <pws@csr.com>
+
+	* zsh-users/8609: Doc/Zsh/expn.yo: document order of (u), (o)
+	and (O) parameter expansion flags.
+
 2005-03-16  Peter Stephenson  <pws@csr.com>
 
 	* 20983: Test/D02glob.ztst, Src/glob.c: fixed string segments
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index 3c3297562..9de4ea379 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -973,16 +973,24 @@ quoted and the option tt(SH_WORD_SPLIT) is set, the word is split on
 occurrences of any of the characters in tt($IFS).  Note this step, too,
 takes place at all levels of a nested substitution.
 )
-item(tt(10.) em(Re-Evaluation))(
+item(tt(10.) em(Uniqueness))(
+If the result is an array and the `tt((u))' flag was present, duplicate
+elements are removed from the array.
+)
+item(tt(11.) em(Ordering))(
+If the result is still an array and one of the `tt((o))' or `tt((O))' flags
+was present, the array is reordered.
+)
+item(tt(12.) em(Re-Evaluation))(
 Any `tt((e))' flag is applied to the value, forcing it to be re-examined
 for new parameter substitutions, but also for command and arithmetic
 substitutions.
 )
-item(tt(11.) em(Padding))(
+item(tt(13.) em(Padding))(
 Any padding of the value by the `tt(LPAR()l.)var(fill)tt(.RPAR())' or
 `tt(LPAR()r.)var(fill)tt(.RPAR())' flags is applied.
 )
-item(tt(12.) em(Semantic Joining))(
+item(tt(14.) em(Semantic Joining))(
 In contexts where expansion semantics requires a single word to
 result, all words are rejoined with the first character of tt(IFS)
 between.  So in `tt(${LPAR()P)tt(RPAR()${LPAR()f)tt(RPAR()lines}})'