Zsh Mailing List Archive
Messages sorted by:
Re: Mac OS X Prompt Bug
- X-seq: zsh-workers 28446
- From: Sorin Ionescu <sorin.ionescu@xxxxxxxxx>
- Subject: Re: Mac OS X Prompt Bug
- Date: Wed, 24 Nov 2010 16:14:28 -0500
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:x-mailer; bh=D5KpYQ1VmU5TAKIrpsVxXwqS/uhQb66viNCVLOUB8d4=; b=Ro2bcItMwK2YrTzkUXiTR0U6G4gmlF+nMx3ooMr1cJydSgLltZaPpzLtV0lul4DNIk KW82guGkYZOxTvAaVE4CdmyGtN+iz184uWAnAeTbIKpNhqZAI0o+U3SyHFPjkAklHmzv GuSWfUIlGddSn5kmFOJpSOI/oMaspvPDc4JiE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:x-mailer; b=dvqhKlW+aU59cvkzaSWaYx9Jjl4XudNnAbFTyeIgDVjSxsNQ/vZLhT0pQYf27uE9h8 ytfDr3YhbzYWy4HJb9xS8BXxTWxvl10z4jbSqv4CpGDSOWo5wAwQa1EcwLUGhXYf9G1B QI5IIYtW/rddsUdDek/nO2zs+5bhBXYB1ii4o=
- In-reply-to: <alpine.LNX.2.01.1011241242320.2792@hp>
- List-help: <mailto:email@example.com>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:firstname.lastname@example.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <BAB9C52A-B68A-4B5A-99C2-F85B310B1380@xxxxxxxxx> <20101124153007.GF1727@xxxxxxxxxxxxxxxxxxx> <9ADAD50F-12F2-4B0A-A494-F339583AEDEC@xxxxxxxxx> <alpine.LNX.2.01.1011241242320.2792@hp>
There is no /etc/zshprofile, /etc/zshrc or any other combination. /etc/profile is not sourced.
I have found nothing in the output of zsh -l -x. Like I said, it’s not a configuration issue. It’s something in ZSH or Terminal.app or both. Nothing hooks on those functions. It’s possible that ZSH outputs some sequences Terminal.app does not like and generates those lines. Perhaps, they are invisible characters.
Output of zsh -l -x.
krustyroo% zsh -l -x
+/etc/zshenv:2> [ -x /usr/libexec/path_helper ']'
+/etc/zshenv:3> /usr/libexec/path_helper -s
+/etc/zshenv:3> eval 'PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/sorin/.local/bin:/Users/sorin/.local/sbin";' export 'PATH;'
+(eval):1> export PATH
On 24 Nov 2010, at 12:49, Benjamin R. Haskell wrote:
> 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)
Messages sorted by: