From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from math.gatech.edu (euclid.skiles.gatech.edu [130.207.146.50]) by werple.net.au (8.7/8.7.1) with SMTP id UAA21043 for ; Wed, 1 Nov 1995 20:53:48 +1100 (EST) Received: by math.gatech.edu (5.x/SMI-SVR4) id AA11419; Wed, 1 Nov 1995 04:44:42 -0500 Resent-Date: Wed, 1 Nov 1995 10:44:17 +0100 (MET) Old-Return-Path: From: Zoltan Hidvegi Message-Id: <199511010944.KAA28282@bolyai.cs.elte.hu> Subject: Re: 2 questions To: P.Stephenson@swansea.ac.uk Date: Wed, 1 Nov 1995 10:44:17 +0100 (MET) In-Reply-To: <12607.9511010846@pygmy.swan.ac.uk> from "P.Stephenson@swansea.ac.uk" at Nov 1, 95 08:46:17 am X-Mailer: ELM [version 2.4 PL24] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: hzoli@cs.elte.hu Resent-Message-Id: <"54I3R3.0.Io2.96qbm"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/512 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Peter wrote: > > 2.) why is it that when I do history -f, I get dates and times that refer to > > the latest login and not to the date and time of command execution in the > > history. > > > > For example, > > > > 105 10/21/1995 09:44 cd News <--- this command was run 10/20 not 10/21 > > 106 10/21/1995 09:44 mail -f z <-- this is correct > > Probably this is due to the problem with some versions of atol() which > don't like the : following the history date and won't convert the > number. This may have been fixed by now. I think that the problem is that you should use the extended_history option to get meaningful timestamps. Be default zsh does not save time information into the history file and on the next login eralier commands are listed with the time of the latest login. >>From zshoptions(1): EXTENDED_HISTORY Save beginning and ending timestamps to the history file. The format of these times- tamps is :::. Zoltan