zsh-users
 help / color / mirror / code / Atom feed
From: Miek Gieben <miek@miek.nl>
To: zsh users <zsh-users@sunsite.dk>
Subject: zsh crash with PS1
Date: Tue, 29 May 2007 21:00:44 +0200	[thread overview]
Message-ID: <20070529190044.GA11313@miek.nl> (raw)

[-- Attachment #1: Type: text/plain, Size: 990 bytes --]

Hello,

I'm was playing around with my prompt, and doing I got zsh to crash.
My PS1 is set to: (sorry for the long lines)

$'[%{\e[$C;34m%}$T%{\e[0m%}|%{\e[$C;34m%}%(1j.%j%{\e[0m%}|.%{\e[0m%})%l|%h> %M %{\e[$C;32m%}%~%{\e[0m%}]\n%{\e[$C;32m%}%#%{\e[0m%} '

If I change the ' to ", like so:
$"[%{\e[$C;34m%}$T%{\e[0m%}|%{\e[$C;34m%}%(1j.%j%{\e[0m%}|.%{\e[0m%})%l|%h> %M %{\e[$C;32m%}%~%{\e[0m%}]\n%{\e[$C;32m%}%#%{\e[0m%} "

I get the following:
zsh: parse error                                                                                    
$[\e[0;34m20:55\e[0m|\e[0;34m\e[0mpts/2|1> elektron \e[0;32m~\e[0m]\n\e[0;32m%\e[0m   

I'm also using RPS and friends but I don't think that is relevant to the crash.

If I now press enter, zsh crashes (and makes my terminal disappear.

This is with:
zsh 4.3.2 (x86_64-unknown-linux-gnu)
on amd64 (Ubuntun feisty)


--
grtz,
  - Miek

  http://www.miek.nl
  PGP: 6A3C F450 6D4E 7C6B C23C  F982 258B 85CF 3880 D0F6

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

                 reply	other threads:[~2007-05-29 19:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070529190044.GA11313@miek.nl \
    --to=miek@miek.nl \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).