about summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2015-11-20 14:15:43 -0800
committerBarton E. Schaefer <schaefer@zsh.org>2015-11-20 14:15:43 -0800
commite59a857b69e8402cca53b3ba1020c44a0b5e46b8 (patch)
tree2d34af1969b7fea758e690614c414d3ce712d775 /Doc/Zsh
parentae0420c46a756116fc9a325596275701678d3485 (diff)
downloadzsh-e59a857b69e8402cca53b3ba1020c44a0b5e46b8.tar.gz
zsh-e59a857b69e8402cca53b3ba1020c44a0b5e46b8.tar.xz
zsh-e59a857b69e8402cca53b3ba1020c44a0b5e46b8.zip
unposted: document order of entries for $history and $historywords
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/mod_parameter.yo6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/Zsh/mod_parameter.yo b/Doc/Zsh/mod_parameter.yo
index 9d1dc8b7d..3d260f8e9 100644
--- a/Doc/Zsh/mod_parameter.yo
+++ b/Doc/Zsh/mod_parameter.yo
@@ -123,10 +123,14 @@ directory, the current working directory.
 vindex(history)
 item(tt(history))(
 This associative array maps history event numbers to the full history lines.
+Although it is presented as an associative array, the array of all values
+(tt(${history[@]})) is guaranteed to be returned in order from most recent
+to oldest history event, that is, by decreasing history event number.
 )
 vindex(historywords)
 item(tt(historywords))(
-A special array containing the words stored in the history.
+A special array containing the words stored in the history.  These also
+appear in most to least recent order.
 )
 vindex(jobdirs)
 item(tt(jobdirs))(