From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13062 invoked from network); 1 Mar 2008 13:00:29 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 1 Mar 2008 13:00:29 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 54394 invoked from network); 1 Mar 2008 13:00:15 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 1 Mar 2008 13:00:15 -0000 Received: (qmail 16467 invoked by alias); 1 Mar 2008 13:00:04 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12665 Received: (qmail 16440 invoked from network); 1 Mar 2008 13:00:02 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 1 Mar 2008 13:00:02 -0000 Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by bifrost.dotsrc.org (Postfix) with ESMTP id 2BE018028C4C for ; Sat, 1 Mar 2008 13:59:55 +0100 (CET) Received: from torch.brasslantern.com ([71.121.18.67]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JX100HOVYRE9C23@vms042.mailsrvcs.net> for zsh-users@sunsite.dk; Sat, 01 Mar 2008 06:59:39 -0600 (CST) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id m21CxbLZ019498 for ; Sat, 01 Mar 2008 04:59:38 -0800 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id m21CxbRV019497 for zsh-users@sunsite.dk; Sat, 01 Mar 2008 04:59:37 -0800 Date: Sat, 01 Mar 2008 04:59:37 -0800 From: Bart Schaefer Subject: Re: Editing history stack during runtime? In-reply-to: <2d460de70803010238l5f221208q1bd0a090c9eca3a9@mail.gmail.com> To: "zsh users" Message-id: <080301045937.ZM19496@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <2d460de70802281709n1847611cp6cb9a5273e212bae@mail.gmail.com> <080229084310.ZM17549@torch.brasslantern.com> <2d460de70802291142u4bdf7c94qa330ff9dad1324f0@mail.gmail.com> <080229192218.ZM18081@torch.brasslantern.com> <2d460de70803010238l5f221208q1bd0a090c9eca3a9@mail.gmail.com> Comments: In reply to "Richard Hartmann" "Re: Editing history stack during runtime?" (Mar 1, 11:38am) X-Virus-Scanned: ClamAV 0.91.2/6062/Sat Mar 1 05:56:21 2008 on bifrost X-Virus-Status: Clean On Mar 1, 11:38am, Richard Hartmann wrote: } Subject: Re: Editing history stack during runtime? } } Wow, thanks. I fear we misunderstood each other in one regard, though: } I do not want to have the contents of the history file in there The contents of the history file are not in there, except that I think you misunderstand something: } only the history accumulated since I logged in to this one shell. "The history accumulated since I logged in" *includes* the history read from the history file at shell startup. There's no way to pick out only what happened after that; it's all in the same stack, with the oldest stuff falling off one end and the latest stuff added to the other. Anything in the history file but old enough to have fallen out of the shell history is not included in the file that gets edited. Anything in the overlap will be included, but only because it's still in the current history.