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

Re: unset IFS - zsh: segmentation fault (core dumped) zsh

On Wed, 20 May 2009 07:51:11 +1200 (NZST)
Atom Smasher <atom@xxxxxxxxxxx> wrote:
> On Tue, 19 May 2009, Peter Stephenson wrote:
> > Unfortunately, we don't know what's in $PR_STUFF[FILLBAR], and other 
> > forms don't crash, so this doesn't help.
> ==============
> print ${(V)PR_STUFF[FILLBAR]}
> ${(r:48::q:)}u%b%{^[[38;5;147m%}%{^O%}%{^O%}%D{%H:%M} %{^[[38;5;62m%}Auckland%{^N%}%{^[[38;5;231m%}tu%{^O%}%{^[[38;5;40m%}0.28, 0.22, 0.19%{^N%}%{^[[38;5;231m%}tu${PR_STUFF[BG_LIGHT_BLUE]}${PR_STUFF[WHITE]}AC 100%%${PR_STUFF[NO_COLOUR]}%{^[[38;5;231m%}%{^[[0m%}%{^[[38;5;231m%}t


I wasn't sure whether to replace the two-character ^[, which seem to occur
even in the base 64 version, with escape sequences, but it didn't actually
seem to matter as far as the crash is concerned.  This turned up one
remaining problem in the patch I posted yesterday, which I've fixed, and
I've committed it.

Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070

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