Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

zsh crash with PS1



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: signature.asc
Description: Digital signature



Messages sorted by: Reverse Date, Date, Thread, Author