I recently upgraded from Ubuntu LTS (8.04) to 9.10 and zsh has stopped working. I'm using the same custom prompt and .zshrc I use on a number of other boxes without any problem but now I'm getting the following error:
Code:
prompt_fhsm_setup:32: bad math expression: illegal character: \
The referenced line is:
Code:
prompt_gfx_hyphen=$'\xe2\x94\x80'
Running echo $'\xe2\x94\x80' from zsh returns a hyphen as expected. I've tried to change that line without any impact on the error. Just doing some basic debugging by commenting lines out suggests that:
Code:
prompt_gfx_tbox="%{$fg_bold[$prompt_fhsm_color1]%}${prompt_gfx_tlc}%{$fg_no_bold[$prompt_fhsm_color1]%}${prompt_gfx_hyphen}"
is the line actually causing the error. When that line is removed the next line to call prompt_gfx_hyphen causes the error and so on. I've tried running zsh in a number of emulators without any impact on the error.
I suspect it has something to do with UTF-8.
The whole file is at:
http://pastebin.com/esFLnMML
Any help would be much appreciated.