On Wednesday, May 28, 2003 10:59 pm, Marc Aurele La France wrote:
> On Wed, 28 May 2003, Bovy, Stephen J wrote:
> > I am having great fun with xterm on IBM z/OS
> > but I can't seem to get bash prompt title changing
> > to work.
> >
> > Here is my prompt string:
> >
> > if    "$TERM" == "cygwin" || "$TERM" == "xterm" || \
> >       "$TERM" == "vt102" || "$TERM" == "vt100"   ; then
> >   export PS1="\[\e]0;\h \@ [\W]\a\e[34;42m\][\w]\[\e[0m\]\n\$ "
> >
> > Do you have any suggestions, I don't know where to begin.
>
> Try apostrophes instead of quotes.

>From the bash man page:

[When inside double quotes,] the backslash retains its special meaning only 
when followed by one of the following characters: $, `, ", \, or <newline>.

Therefore, the only \ that disappears is the one preceding the $.  This is 
only a problem when running as root (euid 0)--\$ should expand to #.

(I assume you're using bash because you list "cygwin".)

Hey, I didn't know vt100 and vt102 supported changing the window title...  Are 
you sure that's really what you mean to do?

-- 
Andy Goth  |  [EMAIL PROTECTED]  |  http://ioioio.net/
End communication.


_______________________________________________
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86

Reply via email to