zsh-workers
 help / color / mirror / code / Atom feed
From: Simon Ruderich <simon@ruderich.org>
To: zsh-workers@zsh.org
Subject: [PATCH] EXTENDED_HISTORY documentation typo
Date: Mon, 29 Mar 2010 01:59:31 +0200	[thread overview]
Message-ID: <20100328235931.GA23061@ruderich.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1056 bytes --]

Hi,

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

    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>)'.
 )
 pindex(HIST_ALLOW_CLOBBER)
 pindex(NO_HIST_ALLOW_CLOBBER)

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

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

             reply	other threads:[~2010-03-29  0:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-28 23:59 Simon Ruderich [this message]
2011-10-27 13:51 ` Mikael Magnusson
2011-10-27 15:57   ` Bart Schaefer
2011-10-27 16:12     ` Mikael Magnusson
2011-10-27 18:50       ` Bart Schaefer
2011-10-27 19:13         ` Mikael Magnusson
2011-10-28 14:28           ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100328235931.GA23061@ruderich.org \
    --to=simon@ruderich.org \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).