zsh-workers
 help / color / mirror / code / Atom feed
From: Zoltan Hidvegi  <hzoli@cs.elte.hu>
To: P.Stephenson@swansea.ac.uk
Subject: Re: 2 questions
Date: Wed, 1 Nov 1995 10:44:17 +0100 (MET)	[thread overview]
Message-ID: <199511010944.KAA28282@bolyai.cs.elte.hu> (raw)
In-Reply-To: <12607.9511010846@pygmy.swan.ac.uk> from "P.Stephenson@swansea.ac.uk" at Nov 1, 95 08:46:17 am

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    :<beginning    time>:<ending
                     time>:<command>.

Zoltan


       reply	other threads:[~1995-11-01  9:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <12607.9511010846@pygmy.swan.ac.uk>
1995-11-01  9:44 ` Zoltan Hidvegi [this message]
1995-05-29  0:43 Soren Dayton
1995-05-30 14:25 ` Vinnie Shelton

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=199511010944.KAA28282@bolyai.cs.elte.hu \
    --to=hzoli@cs.elte.hu \
    --cc=P.Stephenson@swansea.ac.uk \
    /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).