From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27122 invoked by alias); 9 Jan 2015 02:47: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: 34173 Received: (qmail 13515 invoked from network); 9 Jan 2015 02:47:44 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ZqRoDximtjSTH+SaOGtZodssqHN2Rv4nKATaocy19jE=; b=mOW8ltvke/02fmrUT2Nly2lbQOyjiu3J+EBUqn8UBfo8Qnn2Wzq3ulny20E8lOCt3g U0oY5ZqEzv1kZopiTRooV2hRdsx/TXEBbyHQPPNK0ef8M7VCIkGEWJQZGhc3nGbOV97f cvBfkQVlqutecU93EMOc46PSLaa1ZNasmau8jKabMnw2pD/dcFRw7HWOjGYkF53tADIW i2ka3OGfAWSSlm8MRzm4sZNaSp0U/Y4x39iQjA7O10yCVyV73JpjIX+yWCIrHtoHu7HT n9khapjIkYp8dA9/LTCFniCnkctsYFxZeddhDn4NEOBuRBcvYLHR9fI2RomgIC+K01bp iLgQ== MIME-Version: 1.0 X-Received: by 10.107.5.7 with SMTP id 7mr12712539iof.1.1420771659321; Thu, 08 Jan 2015 18:47:39 -0800 (PST) In-Reply-To: <0267E518-E25F-4D97-9D2D-66A0603A6C28@gmx.net> References: <0267E518-E25F-4D97-9D2D-66A0603A6C28@gmx.net> Date: Fri, 9 Jan 2015 03:47:39 +0100 Message-ID: Subject: Re: Bug in 'histreduceblanks' w.r.t. multi-line commands From: Mikael Magnusson To: Hans Meine Cc: zsh workers Content-Type: text/plain; charset=UTF-8 On Thu, Jan 8, 2015 at 11:31 AM, Hans Meine wrote: > Hi, > > with the histreduceblanks option enabled, I suffered from the problem that multi-line commands like the following were mangled in the history: > > cd ~/Developer && \ > svn up --accept postpone -r190973 MeVisLab MeVis/Foundation && \ > svn up --accept postpone -r197619 FMEwork FMEstable > > The command appears in history totally broken, with missing and duplicate/substituted parts as follows: > > cd ~/Developer && n n up -cceptpt ptponene -9097373 MisLabab Mis/Foundationon && svn up -eptcept ponepone -6197619 ork ork FMbltable > > Interestingly, when trying to simplify this example, I noticed that the following works: > > cd foo && \ > ls && \ > echo bar > > I did create a new user for testing and could verify that this is not caused by a conflict with any of the other options that I enabled; even with the default config (or no_zle etc.), the problem starts to appear as soon as I enable histreduceblanks. What version of zsh are you using? A bug like this was fixed quite recently. -- Mikael Magnusson