[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bash escape character troubles

From: Troy Curtis Jr
Subject: Bash escape character troubles
Date: Sun, 15 Jul 2007 00:23:31 -0500

I used to run Gentoo and when I moved to Ubuntu all the sudden my Bash
prompt command would work correctly.  It would correctly set the
window title but it would also display "134134" in front of my prompt.
Here is my PROMPT_COMMAND line:

export PROMPT_COMMAND='echo -ne "\033k\033\134\033k$(if [ ${UID} ==
"0" ]; then echo "root"; else $(if [ ${HOSTNAME} != "malkier" ]; then
echo ${HOSTNAME}; fi;); echo [$(basename "${PWD}" | sed
"s/^\([[:alnum:][:space:].]\{0,25\}\).*$/\1/" )]; fi;)\033\134"'

Sorry but I do not remember what versions of bash and/or screen I was
using on Gentoo for sure.  Now I am running CVS screen (just started,
and the issue was initially noticed in  4.0.3) and bash  3.2.13.

Also this is the 64 bit Ubuntu if that makes any difference.

"Beware of spyware. If you can, use the Firefox browser." - USA Today
Download now at
Registered Linux User #354814 (

reply via email to

[Prev in Thread] Current Thread [Next in Thread]