From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2758 invoked from network); 29 Jun 2001 14:34:13 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 29 Jun 2001 14:34:13 -0000 Received: (qmail 25246 invoked by alias); 29 Jun 2001 14:33:09 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3981 Received: (qmail 25231 invoked from network); 29 Jun 2001 14:33:08 -0000 X-Authentication-Warning: greux.loria.fr: lefevre set sender to vincent@vinc17.org using -f Date: Fri, 29 Jun 2001 16:33:49 +0200 From: Vincent Lefevre To: zsh-users@sunsite.dk Subject: [4.0.2 bug] commands not written to history Message-ID: <20010629163348.A9632@greux.loria.fr> Mail-Followup-To: zsh-users@sunsite.dk Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.3.19i X-Mailer-Info: http://www.vinc17.org/mutt_eng.html I sometimes write related commands like $ cmd1 $ cmd2 And several hours/days later, I can recall cmd1 from the history and type ^O to recall cmd2 automatically. I don't want to do that in a script or in a function, to have full control on these commands (and be able to insert commands between cmd1 and cmd2 if need be). But sometimes (difficult to say under which conditions), a copy of cmd1 had been written to the history (as expected), but there is no copy of cmd2. That is, ^O gives me another command (instead of cmd2). Here are my history options: greux:~> setopt|grep hist <16:29:44 extendedhistory histignoredups histignorespace histnofunctions histnostore histreduceblanks incappendhistory greux:~> unsetopt|grep hist <16:29:46 noappendhistory nobanghist cshjunkiehistory histallowclobber nohistbeep histexpiredupsfirst histfindnodups histignorealldups histsavenodups histverify sharehistory I reported a similar problem for zsh 3.1.9 in November (message-id of the first mail: <20001129141451.A24159@lepois.loria.fr>). And I got a reply saying: -------- IIRC, this bug was fixed back in July: 2000-07-17 Wayne Davison * 12265: Src/hist.c: Fixed gethistent(). In the case you cite, the gethistent() function would sometimes fail when called from savehistfile(). -------- I don't know if this is related... -- Vincent Lefèvre - Web: - 100% validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des Jeux Mathématiques et Logiques, TETRHEX, etc. Work: CR INRIA - computer arithmetic / SPACES project at LORIA