On Monday 12 January 2009 20:38:03 Philip Guenther wrote:

> When the shell is started by konsole, or xterm, or login, it's
> working directory has already been set to $HOME.  At that point, it
> can only see the physical path (sans symlinks).  If you want it to
> see the logical path, then you need to have it do a chdir itself...as
> you figured out when you do 'cd' first thing.
>
So the shell starts whereever it is put to by xterm, konsole, etc.
and does not itself evaluate $HOME at start-up?

> So, just put some logic into your .profile to cd $HOME if the
> physical directory is that of $HOME.
>
> case $PWD in
>   $(cd $HOME && pwd -P) ) cd $HOME;;
> esac
>
I have put that at the end of my .profile and it works for remote login
(ssh).
But the KDE konsole and xterm  still resist and display the physical
location at start-up instead of $HOME (~).
I did logout of the X session and login again, just to make sure.

Rudi

Reply via email to