Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] EXTENDED_HISTORY documentation typo


There is a minor typo in the documentation of EXTENDED_HISTORY.
According to Src/hist.c the following syntax is used for

    ret = fprintf(out, ": %ld:%ld;", (long)he->stim,

But the documentation says this:

    :<beginning time>:<elapsed seconds>:<command>

So the last : must be a ; and there is a space after the first :
(or the source code is wrong).

diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo
index 003071a..e9c8ff9 100644
--- a/Doc/Zsh/options.yo
+++ b/Doc/Zsh/options.yo
@@ -746,7 +746,7 @@ Save each command's beginning timestamp (in seconds since the epoch)
 and the duration (in seconds) to the history file.  The format of
 this prefixed data is:

-`tt(:)var(<beginning time>)tt(:)var(<elapsed seconds>)tt(:)var(<command>)'.
+`tt(:) var(<beginning time>)tt(:)var(<elapsed seconds>)tt(;)var(<command>)'.

+ privacy is necessary
+ using gnupg http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9

Attachment: pgpFlqs7w5i9S.pgp
Description: PGP signature

Messages sorted by: Reverse Date, Date, Thread, Author