From e59a857b69e8402cca53b3ba1020c44a0b5e46b8 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Fri, 20 Nov 2015 14:15:43 -0800 Subject: unposted: document order of entries for $history and $historywords --- Doc/Zsh/mod_parameter.yo | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Doc/Zsh/mod_parameter.yo') 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))( -- cgit 1.4.1