zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ibmth.df.unipi.it>
To: zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: history curiosities
Date: Fri, 16 Jul 1999 15:36:26 +0200	[thread overview]
Message-ID: <9907161336.AA14838@ibmth.df.unipi.it> (raw)

I'm getting rather confused with history.  The options I have set are given
at the end; I think what's really doing it is HISTIGNOREALLDUPS.  I have
HISTFILE, HISTSIZE and SAVEHIST set, though presumably the values aren't
that significant.

First, if I do `history' I get a listing without the last `history' in the
listing.  Yet when I do `!!', it's that `history' which is re-executed.
(Note I don't have histnostore set.)

I also have h as an alias for `history -fD'.  After
  echo one
  echo two
  echo three
  h
I get what I said above; the h is not listed.  Now when I do `history', the
`h' is listed but the `history' isn't, i.e. the last two entries shown
are `echo three' and `h'.  Now if I do `h' again, the `h' disappears and
`history' shows up.

Worse: I now set HISTNOSTORE in addition to the others, type `h', then
`!!'.  I get the message `no such event'.  After some more attempts with
those two commands, the whole thing goes haywire.  Repeating !! makes the
`h' listing show earlier and earlier parts of the list (seems to step back
4 every time).  After another command, typing `h' gives a `no such event'
message.  Sometimes the shell exits, but I haven't worked out how to
reproduce that.

I hope Wayne's out there somewhere...

noappendhistory       off
nobanghist            off
cshjunkiehistory      off
extendedhistory       on
histallowclobber      off
nohistbeep            off
histexpiredupsfirst   off
histfindnodups        off
histignorealldups     on
histignoredups        on
histignorespace       on
histnofunctions       off
histnostore           off
histreduceblanks      off
histsavenodups        off
histverify            on
incappendhistory      on
sharehistory          off

-- 
Peter Stephenson <pws@ibmth.df.unipi.it>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy


             reply	other threads:[~1999-07-16 14:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-16 13:36 Peter Stephenson [this message]
1999-07-17 17:50 ` Bart Schaefer
1999-07-18  0:03 ` Wayne Davison
1999-07-18 14:59   ` PATCH: " Peter Stephenson
1999-07-19 15:51     ` Peter Stephenson

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=9907161336.AA14838@ibmth.df.unipi.it \
    --to=pws@ibmth.df.unipi.it \
    --cc=zsh-workers@sunsite.auc.dk \
    /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).