LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-09-2010, 09:23 PM   #1
fhsm
Member
 
Registered: Jan 2009
Posts: 51

Rep: Reputation: 17
zsh error after upgrade


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.
 
Old 12-01-2010, 11:12 AM   #2
fhsm
Member
 
Registered: Jan 2009
Posts: 51

Original Poster
Rep: Reputation: 17
[solved] Solution... much later

Finally got this worked out, it's not a UTF-8 problem. It's a change to the way bold / normal text is specified. It was fg_bold[] it's now %B%F. Changing this fixes the problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
zsh rihab84 Debian 4 05-08-2008 06:43 AM
zsh query stuartmcgeown Linux - Networking 1 05-12-2006 08:06 PM
help during installation with zsh stuartmcgeown Red Hat 1 05-12-2006 08:04 AM
Error trying to dist-upgrade or upgrade KDE prophet621 Linux - Newbie 0 09-10-2003 04:17 PM
Zsh rch Linux - General 0 05-22-2003 03:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration