zsh-users
 help / color / mirror / code / Atom feed
* zsh crash with PS1
@ 2007-05-29 19:00 Miek Gieben
  0 siblings, 0 replies; only message in thread
From: Miek Gieben @ 2007-05-29 19:00 UTC (permalink / raw)
  To: zsh users

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-29 19:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-29 19:00 zsh crash with PS1 Miek Gieben

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).