From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27520 invoked by alias); 4 Jun 2014 15:18:47 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 32704 Received: (qmail 27756 invoked from network); 4 Jun 2014 15:18:43 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,FAKE_REPLY_C autolearn=ham version=3.3.2 Date: Wed, 4 Jun 2014 17:09:42 +0200 From: Axel Beckert To: zsh-workers@zsh.org Subject: Re: History bug in zsh 5.0.5 Message-ID: <20140604150941.GL7931@sym.noone.org> Mail-Followup-To: zsh-workers@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <140604075559.ZM30360@torch.brasslantern.com> <8020140C-4E21-4136-BA9B-D258065847E5@gmail.com> X-Operating-System: Linux 2.6.32-5-xen-amd64 X-Machine: sym2 x86_64 X-Editor: GNU Emacs 23.2.1 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAAAAAC3mUtaAAAABGdBTUEAALGPC/xhBQAAADh0RVh0U29mdHdhcmUAWFYgVmVyc2lvbiAzLjEwYSAgUmV2OiAxMi8yOS85NCAoUE5HIHBhdGNoIDEuMindFS5JAAACGElEQVQ4jXXQMU8UYRDG8f8shNjdDH4AbpfGDjAWlKiJiZ0ajL1aGCvsNCbGaCGG1koLaztaTYz6ATy+gOyehYmF3MxVxgg3FnDsHcTpJr/M+8w7Rf6nCsaVTTDqxbg9hoOXmw83H71+Eyfg4E1d7/Z2fG9rGkZbTQiu+K+3U/C+76lmkvAhJuDndnoAiftou4V84okAGclop4U/jYACZDTxrYWP0gkxVfAm/W//GLZpxIzwIN0Hn8dw0B+IWkZmQmRsj2HfhwokEklHfNCCiQCRgAR7YyhQVRVTCKCzP4Y5zBBE0t0zY3Q8oQaBqqAMlVEcgVQd9706zGirAFium8HXumlMIeMwqQCInju+2+uB6MRENupdpMt8pRlHZyuAW0F+Mb6XSIVqtxjD+iVmVqqystLEzFTGT92YqRaXpNT5eTVjeJhbALPnrTxLUZUKZsgxcNm64hAOYisT/xhF+oKTGU5RegtC3Rt6eEDi/QnIevdTx9Md2EMmYBRmCQR1026FCGQQJJExsRUqgkMGaWSbwYLnoO4T6VgpbQbdELPMBAHWWrhYrcxXnYgAsatPWygkFCBD4K62MAsOTqA6szYRPpsu6e6Y8mPiVrBMNuGIMrgwBUu4p2DgG1Ownu6hpuTv7hScefHAzAC/yRRw5U5pALMbJ4AUALvHSZhxgHPXTsHcdWD1GadAHr9avP+c0wCr7263Df8ASLwXWHWs+KIAAAAHdElNRQfYBQEBODPr Organization: DeuxChevaux.org -- The =?iso-8859-1?Q?Citr?= =?iso-8859-1?B?b+tu?= 2CV Database User-Agent: Mutt/1.5.20 (2009-06-14) Hi Bart, On Wed, Jun 04, 2014 at 11:36:47AM +0400, RoboSloNE wrote: > I found this bug in latest zsh (I’ve not tried git version yet): > incremental history doesn’t work right after command is executed, it > waits for the next command to log first one. > > > How to reproduce: > > 1. Enable this options in ~/.zshrc: extended_history, inc_append_history, share_history > > 2. Restart shell > > 3. Open two tabs (shells) > > 4. Type 'echo 123' in first shell > > 5. Press Ctrl+R in second shell: 'echo 123' is not in history > > 6. Just press enter > > 7. CTRL+R, and you'll see the updated list On Wed, Jun 04, 2014 at 07:55:59AM -0700, Bart Schaefer wrote: > This has already been reported and a patch can be found in the article > zsh-workers/32682 ( http://www.zsh.org/mla/workers/2014/msg00470.html ) > > It was an intentional change to fix a different problem (elapsed time > accuracy) but we underestimated the importance for some users of having > the immediate file update. Are you sure these are the same things? I'm not. But I thought so first, too. :-) There's no sleep or such in RoboSloNE's report and it's about SHARE_HISTORY which zsh-workers/32682 isn't (IIRC). I think he rather argues, that Ctrl-R should already reread the history from disk and not only the next command (or an empty command by just pressing enter). Kind regards, Axel -- /~\ Plain Text Ribbon Campaign | Axel Beckert \ / Say No to HTML in E-Mail and News | abe@deuxchevaux.org (Mail) X See http://www.nonhtmlmail.org/campaign.html | abe@noone.org (Mail+Jabber) / \ I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)