[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.
Thanks,
--
"Beware of spyware. If you can, use the Firefox browser." - USA Today
Download now at http://getfirefox.com
Registered Linux User #354814 ( http://counter.li.org/)
- Bash escape character troubles,
Troy Curtis Jr <=
- Re: Bash escape character troubles, Jean Jordaan, 2007/07/15
- Re: Bash escape character troubles, donothing successfully, 2007/07/15
- Re: Bash escape character troubles, Jean Jordaan, 2007/07/16
- Re: Bash escape character troubles, donothing successfully, 2007/07/16
- Re: Bash escape character troubles, Troy Curtis Jr, 2007/07/16
- Re: Bash escape character troubles, Jean Jordaan, 2007/07/17
- Re: Bash escape character troubles, Jean Jordaan, 2007/07/17
- Re: Bash escape character troubles, donothing successfully, 2007/07/17
Re: Bash escape character troubles, Peder Stray, 2007/07/17