On 8/28/06, Martin Bähr <[EMAIL PROTECTED]> wrote:
> On Mon, Aug 28, 2006 at 03:34:14AM +0200, Axel Liljencrantz wrote:
> > >for some reason this produces a beep though
> > Ok, I didn't know about that functionality. One possibility would be
> > to make fish_title always set the screen title instead of the xterm
> > title when inside screen. Would that make sense?
> >
> > Other than that, I suspect that the bell you hear is because the bell
> > character is the end of the escape code for setting the title. So make
> > sure that at the end of the title, the beginning but no the end of the
> > set tterminal title escape sequence has been set.
>
> that's exactly what i tried with:
>
>   echo -ne '\007\033k'$_'\033\\\033]0;'
>
> but it does't work. something with the quoting goes wrong here because i
> get 033]0; printed in the terminal.
>
> but it works like this:
>   echo -n \007\033k$_\033\\\033]\;
> which is similar to what you suggest:
>
> >    echo -ne \7\033 blah blah screen title\033\e]2\; blah blah xterm title
>
> i am still confused about how the quoting works with regards to \\

Short version:

When unquoted, backslash escapes work just like inside strings in
pike, C, Java or Python, except a bunch of magic characters like
space, backslash and semicolon become non-magical when backslashed.
When double quoted, only $, \ and " can be backslash escaped.
When single quoted, only \ and ' can be backslash escaped.

Does that help?

> > >which makes variable interpolation in strings unnecessary, or is there a
> > >case where this would not work?
> > None. The reason why that exists is:
> >
> > * Because everybody but me seems to like it. I hate it, but I am weak
> > and want people to like me.
>
> does it help if i tell you that i hate it too?
> how about telling you i would like you more if you removed it again ;-)

No, it doesn't. It makes me want to tell you that if you'd discovered
fish half a year earlier, then the whole mess might have been avoided.
This is all your fault. ;-)

Seriously though, I think changing the quoting rules _again_ is a bad
idea, unless there are very strong reasons.

> > * Because it expands differently, specifically quoted variables are
> > expanded to exactly one element, even if the variable is an array.
>
> ok, that is an argument.

It is. An argument.

>
> greetings, martin.
> --
> cooperative communication with sTeam      -     caudium, pike, roxen and unix
> offering: programming, training and administration   -  anywhere in the world
> --
> pike programmer   travelling and working in europe             open-steam.org
> unix system-      bahai.or.at                        iaeste.(tuwien.ac|or).at
> administrator     (caudium|gotpike).org                          is.schon.org
> Martin Bähr       http://www.iaeste.or.at/~mbaehr/
>

-- 
Axel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to