From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29272 invoked by alias); 25 Sep 2013 19:22:49 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18001 Received: (qmail 29246 invoked from network); 25 Sep 2013 19:22: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 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.216.48 as permitted sender) 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=7k+TPUN8qupwVeBtMu4zN1/AXNvPcMbzEDnWZN05m6Y=; b=EY4uryKI0XzODMXIBdk4uIt6AjnHzxN2seEtGabud9Mjbync8j+cKgOxpIOJC54Vbn xIH6g//lQmimzjmN8V1qv8kYs1HHymuZE0VvPbqNH9wclFPMaPp0po2JiTTfPr1d6Olg sx9RodhO/HEc2Hpy61vF6Tf59/TGkN/uNoSYt33pAb4U9FrEvODPOwhp5WX0AUMuul0Y io1tn0cKmvenjPrKx8N08M0riPb0QPXXr7q1gsKRXxeY3PGTyZUs2Fw9wRMWm3EMR1FD XVCuxjJvoGnM5UcY3Cgnk4GoWKQ3INyj+fgBN8HmyQLJAUX4xft/RnURzthuKxH9/aJT +hEg== MIME-Version: 1.0 X-Received: by 10.229.79.70 with SMTP id o6mr20111595qck.21.1380136955615; Wed, 25 Sep 2013 12:22:35 -0700 (PDT) In-Reply-To: <20130918211227.51cdbd0f@pws-pc.ntlworld.com> References: <20130918185058.GA19235@Archie> <20130918211227.51cdbd0f@pws-pc.ntlworld.com> Date: Thu, 26 Sep 2013 00:52:35 +0530 Message-ID: Subject: Re: Issue with histreduceblanks From: Raghavendra Prabhu To: Peter Stephenson Cc: Zsh Users Content-Type: text/plain; charset=UTF-8 On Thu, Sep 19, 2013 at 1:42 AM, Peter Stephenson wrote: > On Thu, 19 Sep 2013 00:20:58 +0530 > Raghavendra D Prabhu wrote: >> I have been noticing an issue with mangling of history (randomly) from a few >> weeks, today I decided to check which option may have been >> causing that. It seems to be histreduceblanks >>... >> I got this thread - http://www.zsh.org/mla/workers/1997/msg00542.html >> from search, but it looks like it turned out to be an issue with >> terminal capabilities. >>... >> I use rxvt-unicode normally and noticed the issue on that first. >> However, as you can see above, I can reproduce this with xterm as >> well. > > It's probably worth making sure whether this is a shell issue or a > terminal issue. > > Recall the line, then (regardless of it being mangled) go to the > start of it and enter "print ", then hit return. If it's a terminal > issue the line you see will be correct. It seems a bit unlikely that > that's the problem if it's associated with the option, though. > > Are there any non-ASCII characters on the line that might be confusing > the algorithm (the option pre-dates handling of multibyte characters)? > > -- > Peter Stephenson > Web page now at http://homepage.ntlworld.com/p.w.stephenson/ Hi Sorry for the delay in replying (it had ended in my Junk due to Precedence headers). a) I had also noticed that it writes to the history file mangled. ================================================== zsh -f Archie% setopt appendhistory sharehistory histreduceblanks Archie% HISTFILE=/tmp/.zsh_history Archie% HISTSIZE=5000 Archie% SAVEHIST=5000 Archie% cat /tmp/.zsh_history setopt appendhistory HISTFILE=/tmp/.zsh_history HISTSIZE=5000 SAVEHIST=5000 true cat /tmp/.zsh_history setopt rcs setopt sharehistory true cat /tmp/.zsh_history : 1380136272:0;setopt appendhistory sharehistory histreduceblanks : 1380136276:0;HISTFILE=/tmp/.zsh_history : 1380136279:0;HISTSIZE=5000 : 1380136282:0;SAVEHIST=5000 : 1380136285:0;cat /tmp/.zsh_history Archie% Only two kinds of witnesses exist. The first live in a neighborhood where zsh: command not found: Only Archie% Only two kinds of witnesses exist. he fisst lvee in a neighorrhood werre Archie% cat /tmp/.zsh_history setopt appendhistory HISTFILE=/tmp/.zsh_history HISTSIZE=5000 SAVEHIST=5000 true cat /tmp/.zsh_history setopt rcs setopt sharehistory true cat /tmp/.zsh_history : 1380136272:0;setopt appendhistory sharehistory histreduceblanks : 1380136276:0;HISTFILE=/tmp/.zsh_history : 1380136279:0;HISTSIZE=5000 : 1380136282:0;SAVEHIST=5000 : 1380136285:0;cat /tmp/.zsh_history : 1380136298:0;Only two kinds of witnesses exist. he fisst lvee in a neighorrhood werre : 1380136309:0;cat /tmp/.zsh_history b) Also tested with print as requested ============================================ zsh -f Archie% setopt histreduceblanks Archie% Only two kinds of witnesses exist. The first live in a neighborhood where zsh: command not found: Only Archie% Only two kinds of witnesses exist. he fisst lvee in a neighorrhood werre Archie% print Only two kinds of witnesses exist. he fisst lvee in a neighorrhood werre Only two kinds of witnesses exist. he fisst lvee in a neighorrhood werre Archie% ================================================== So, is no one else facing this? In that case I wonder if this is an issue with libraries - glibc etc. pacman -Q zsh glibc zsh 5.0.2-4 glibc 2.18-5