[ILUG] simple bash question.

Jason Corcoran Jason at jcorcoran.net
Wed Dec 15 12:24:09 GMT 2004


Hi,

I have a function in my bashrc that I want to rename a xterm's icon title to the name of a machine I am telnetting into. So I do the following 

function settitle()
{
    source /bin/title $1;
    telnet $1;
}

where /bin/title will change the name. But the problem is the icon name dosent change until I quit the telnet session. Is there a way to force the env veriable and PS1 to be updated before calling telnet $1?
-- 
jason at jcorcoran.net

Fortune:
Bugs will appear in one part of a working program when another 'unrelated' part is modified. 
	-- Murphy's Laws of Computer Programming n°2



More information about the ILUG mailing list