From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22809 invoked by alias); 1 May 2013 19:56:50 -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: 17802 Received: (qmail 1088 invoked from network); 1 May 2013 19:56:35 -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,HTML_MESSAGE,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.215.173 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=UfO2D0M3pomY3qFCOUFlxXP3YcCSxVG4UdemUA8ags4=; b=yuqG9Std9yY1PpEoP5PuSRG9HV37lBHfxPfvYX7vMmOfW7QdTdI6w3dnCrsLQee9Hg U7Q8DMYQbjcydTKfg/79eh9IMrigd+9LZ3LRZebLKe8pSE7VaoK/Q/Ks7uVgk2mNWSoQ Rtm/YjqXc2i48JH9tWt8QG8bj0LDQZvrhcDvaxLQq7k/t3aPOvsqBgkeLsR7vddfw63W gx9vmGLpX22P1P/nguEnGDn0Vtmz2RmFkEhrDuxeW2eiNGJLfjMfGh9D35ONMEBefao0 JJyLmzeKfmMxkm9RZK79KwUBGRPm5MFBpGwj5IJoz0j4dvLw3vHJycqdOUmTXDooP8g1 L2zw== X-Received: by 10.15.42.198 with SMTP id u46mr10383096eev.10.1367428544306; Wed, 01 May 2013 10:15:44 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20130501130103.60e6daf6@gmail.com> References: <20130501093837.633973c3@gmail.com> <87a9ofyrcr.fsf@ft.bewatermyfriend.org> <20130501130103.60e6daf6@gmail.com> From: James Jong Date: Wed, 1 May 2013 13:15:24 -0400 Message-ID: Subject: Re: zsh echoing every statement To: f gr Cc: zsh-users@zsh.org Content-Type: multipart/alternative; boundary=089e0160c762a3c30904dbab4405 --089e0160c762a3c30904dbab4405 Content-Type: text/plain; charset=ISO-8859-1 Actually, you are right. If I run the shell in a real terminal emulator (e.g. gnome-terminal), the output is always OK. The problem only appears when I run my shells on M-x term (or multi-term) in Emacs. The odd thing is that, as I reported on the email starting this thread, the problem with the output only happens when I *switch* shells, and only with Option (2), and not with Option (1) (see my original email). James On Wed, May 1, 2013 at 7:01 AM, f gr wrote: > From Frank Terbeck's message of 2013-05-01T11:36+0200: > > > f. gr wrote: > > > Excerpt from James Jong's message > > > of 2013-04-30T17:07-0400: > > > [...] > > >> $ ls > > >> 2;ls --color=yes -aF1;ls./ ../ file1 file2 file3 > > >> > > >> In other words, zsh shows 2;COMMAND 1; and then the output > > >> without line breaks, which is of course very different from what > > >> I was getting with Option 1. > > >> > > >> What can I do to diagnose the problem? Any pointers would be > > >> greatly appreciated > > > > > > I use grml's zsh setup. I get the output like you: if I run the > > > system by runlevel 1 (or 3) and type the command ls, zsh shows the > > > following: > > > ;root@hostname: ls [without any line breaks] > > > > Sounds like broken preexec()/precmd() hooks to set terminal titles. > > If you didn't write those yourself, I'd suggest you report it to > > the person who did. > > > > You can try this to check: > > > > % unfunction preexec > > % unfunction precmd > > % unset preexec_functions > > % unset precmd_functions > > the first two commands got: > " > unfunction: no such hash table element: preexec > unfunction: no such hash table element: precmd > " > > > > As a normal user the same. The curious thing is that when I run > > > the shell by a terminal emulator (in my case xfce4-terminal) the > > > output is OK. > > > > I happen to know the grml-setup a fair bit, and I think its title > > hooks are fairly solid. If you mess with $TERM however and make the > > setup think it is running in a terminal that would support terminal > > title setting, although it's actually a terminal that doesn't, then > > things like this can happen as well. > > > > If you still think it's a bug, visit the grml folks on IRC: > > > > #grml on the freenode network > > > > ...and tell them, or report a bug via their bug tracking system: > > > > http://bts.grml.org/grml/ > > I'll ask grml team. > > > --089e0160c762a3c30904dbab4405--