From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19362 invoked by alias); 27 Oct 2011 19:13:47 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29875 Received: (qmail 20732 invoked from network); 27 Oct 2011 19:13:36 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.212.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=eSvcX7lKCmF2JTtXIg40xcpCqNOHZtAzq98X7btcdiY=; b=ET/NIH0kSrY3xlHq0CrvSjMNGniEwT1km+B7MKWWvq36ZHTJcFfK1AGo7drZMOtrLV kGWmarYr6BGP6LfsOMfo4UesSEWkA2KVCJpP4Jj+MXFb4WZEF8dPzddApKjzdyjyOPOO SRfDwCazvjC+2ZGiTlIZ9ONxPcq9Jie5PqB14= MIME-Version: 1.0 In-Reply-To: <111027115013.ZM19042@torch.brasslantern.com> References: <20100328235931.GA23061@ruderich.org> <111027085718.ZM18523@torch.brasslantern.com> <111027115013.ZM19042@torch.brasslantern.com> Date: Thu, 27 Oct 2011 21:13:30 +0200 Message-ID: Subject: Re: [PATCH] EXTENDED_HISTORY documentation typo From: Mikael Magnusson To: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 On 27 October 2011 20:50, Bart Schaefer wrote: > On Oct 27, 6:12pm, Mikael Magnusson wrote: > } Subject: Re: [PATCH] EXTENDED_HISTORY documentation typo > } > } % history -dD > } 1 18:06 0:00 HISTFILE=/tmp/test > } 2 18:06 0:00 HISTSIZE=50 > } 3 18:06 0:00 SAVEHIST=50 > } 4 18:06 0:00 setopt incappendhist > } 5 18:06 0:00 setopt incappendhistory > } 6 18:06 0:00 cat /tmp/test > } 7 18:06 0:00 setopt extendedhistory > } 8 18:06 0:00 cat /tmp/test > } 9 18:06 0:05 sleep 5 > } 10 18:07 0:00 cat /tmp/test > } > } At first i thought maybe it's one of my local patches, but i get the > } same result on a remote host running 4.3.10. > > This is exactly what I'd expect. Zsh doesn't even bother storing the > time delta if extended history isn't set. Hence you get the delta > at event 9 after having set the option at event 7. > > There isn't a HIST_REVISIONIST option. :-) Hm? I ran the sleep after I did setopt extendedhistory. Note also that the time delta 0:05 is output by history -dD but isn't stored in the history file. You didn't quote the histfile excerpt: setopt extendedhistory : 1319731616:0;cat /tmp/test : 1319731618:0;sleep 5 : 1319731624:0;cat /tmp/test -- Mikael Magnusson