From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6385 invoked by alias); 24 Sep 2011 03:23:13 -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: 16411 Received: (qmail 19107 invoked from network); 24 Sep 2011 03:23:12 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.210.41 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=FPms8ujaLrs0PswyXvFJHAQsoGLBwzbCEhnvB0I4+l4=; b=XYOtJA9MJ+q8Sc2gv+IzkXXny885TsXOED3MewJ1h7ZiOtDpYHBfNbnX2VCyz9GPcA gvIsAr8ZPKVGXM6rIV7r4i78+Kdfw2Rgfl7TY43bS1HAuM6cJeP6tJ6z3jjF6SSjDrcj wSYksBC/ak0eofW/t/tx2pyxK0F+cGnmZRfeE= MIME-Version: 1.0 Date: Fri, 23 Sep 2011 19:52:58 -0700 Message-ID: Subject: prompts with newlines get printed twice From: =?UTF-8?Q?Jorge_Israel_Pe=C3=B1a?= To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary=bcaec53af0be02d9f604ada70664 --bcaec53af0be02d9f604ada70664 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hey guys. I'm new to zsh and I have been playing with getting my prompt set up nicely. The problem I'm encountering is that when I create a newline in the prompt, the prompt gets printed twice when I open the terminal. Example: In ~/.zshrc PROMPT=3D'%n @ %m $ ' results in: Last login: Fri Sep 23 19:13:38 on ttys000 user at host user at host $ This happens without fail whenever I open the Terminal application, regardless of the amount of tabs. However, once the application is running, if I open a new window or tab, this does not happen and the prompt is correctly displayed only once. What intrigues me is that it only prints the top part twice but not the '$' part. Any guesses as to why this might be happening? I have spent hours on it to no avail, so I would really appreciate any help. I'm on Mac OS X 10.7 Lion. zsh version is 4.3.11, what came with Lion. I also experience this with 4.3.12 that I installed with brew. This happens even if I change the Terminal to run /bin/zsh instead of /usr/bin/login Thanks. --=20 - Jorge Israel Pe=C3=B1a --bcaec53af0be02d9f604ada70664--