zsh-workers
 help / color / mirror / code / Atom feed
* history curiosities
@ 1999-07-16 13:36 Peter Stephenson
  1999-07-17 17:50 ` Bart Schaefer
  1999-07-18  0:03 ` Wayne Davison
  0 siblings, 2 replies; 5+ messages in thread
From: Peter Stephenson @ 1999-07-16 13:36 UTC (permalink / raw)
  To: Zsh hackers list

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1999-07-19 18:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-16 13:36 history curiosities Peter Stephenson
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

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).