Hi Nicholas,

Thanks for the answers.

> tmux uses file descriptors for paths now which is more robust but this
> is one of the side effects.

So this is the intended behavior.

IMO, it's still a little bit strange, because it basically makes symlinks
worthless. In most cases there is a reason why I want something to use the
symlink instead of the expanded (canonicalized) directory name.

> There was talk of preserving PWD to give some shells a hint about
> symlinks but I forget what happened to it, it may be one of the two
> environment handling diffs in my inbox although neither looks like it.

As I mentioned above, there might be reasons why someone wanted the symlink to
be used, thus something like a config variable to not expand the symlink would
be great. Shouldn't be that hard to implement -> if config var set, use cwd()
instead of readlink() in osdep_get_cwd.

> You could try fiddling with putting PWD in update-environment and see if
> that helps, or stick something like this in your .profile (this is what
> I used to do when my home was a symlink):
>
> [ "x${PWD#/data/home/}" != "x$PWD" ] && cd ~/${PWD#/data/home/}

This is not a bad idea and a nice work around, although I had to change it to
the following to get it to work:

[ "x${PWD#/data/home/}" != "x$PWD" ] && cd /home/${PWD#/data/home/}

Thanks for your help.

Cheers,
 Helmut

-- 
regards Helmut K. C. Tessarek
lookup http://sks.pkqs.net for KeyID 0xC11F128D

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to