From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19137 invoked by alias); 24 Nov 2010 17:50:33 -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: 28444 Received: (qmail 12194 invoked from network); 24 Nov 2010 17:50:20 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at benizi.com designates 64.130.10.15 as permitted sender) Date: Wed, 24 Nov 2010 12:49:48 -0500 (EST) From: "Benjamin R. Haskell" To: Sorin Ionescu cc: zsh-workers@zsh.org Subject: Re: Mac OS X Prompt Bug In-Reply-To: <9ADAD50F-12F2-4B0A-A494-F339583AEDEC@gmail.com> Message-ID: References: <20101124153007.GF1727@prunille.vinc17.org> <9ADAD50F-12F2-4B0A-A494-F339583AEDEC@gmail.com> User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed On Wed, 24 Nov 2010, Sorin Ionescu wrote: > Yes, iTerm2 does not have this problem. While unsetopt PROMPT_SP > removes the %, the blank lines are still echoed. The easiest way to > test this is to touch ~/.hushlogin and open Terminal.app. Notice the > scrollbar. > > So, PROMPT_SP is definitely not the problem. It seems the prompt is > being pushed down by the blank lines. Hence why % is not being > overwritten by the prompt in the screenshot. So, figure out what's printing out the blank lines. You mentioned /etc/zshenv. What about /etc/zshprofile or /etc/zshrc? Or maybe even /etc/profile, which is often sourced by system Zsh startup files, depending on how Zsh is distributed. Maybe see if something is set up with hook functions: $ functions preexec precmd chpwd periodic TRAPDEBUG As a last resort, try to run Zsh with tracing enabled: zsh -x (then Ctrl-d or quit) [produces lots of output, but maybe near the end you'll see something printing out some blank lines] Might need: zsh -l -x (not sure how you start your commands in OS X terminal) -- Best, Ben