in reply to Re: odd escape chars in strings obtained by SSH
in thread odd escape chars in strings obtained by SSH

Thanks for the suggestions. I have indeed aliased ls and set a simple prompt as suggested. I still do have, however, one escape sequence appended to the end of output (even a simple command like 'pwd'). It looks like this:

ESC]0;username@hostname:~^G

ESC is hex 1b, and ^G is the bell char (07). I'm still trying to figure if this is coming from SSH, the term, or from Expect. I'm going to hack it out for now ...

Replies are listed 'Best First'.
Re^3: odd escape chars in strings obtained by SSH
by toma (Vicar) on Oct 12, 2007 at 16:17 UTC
    This looks like it may be the shell prompt. Try setting the shell environment variable PS1='' on the remote machine.

    It should work perfectly the first time! - toma