From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1654 invoked by alias); 1 May 2013 09:57:57 -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: 17800 Received: (qmail 12729 invoked from network); 1 May 2013 09:57:51 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at bewatermyfriend.org does not designate permitted sender hosts) From: Frank Terbeck To: f gr Cc: zsh-users@zsh.org Subject: Re: zsh echoing every statement In-Reply-To: <20130501093837.633973c3@gmail.com> (f. gr's message of "Wed, 1 May 2013 09:38:37 +0200") References: <20130501093837.633973c3@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Date: Wed, 01 May 2013 11:36:04 +0200 Message-ID: <87a9ofyrcr.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain X-Df-Sender: [pbs]NDMwNDQ0 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 After that, any hook functions should be disabled I think. > 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/ Regards, Frank