[Konsole-devel] [Bug 242114] Konsole resolves symlinks for initial path, should mimic CD/PWD behavior

Jekyll Wu adaptee at gmail.com
Sun Sep 25 08:33:20 UTC 2011


https://bugs.kde.org/show_bug.cgi?id=242114





--- Comment #15 from Jekyll Wu <adaptee gmail com>  2011-09-25 08:33:20 ---
OK, I tested your patch. It did its job. But based upon my observation I have a
few concerns about the $PWD trick:

1. $PWD and the pwd builtin provided by shell reports 'symlink', while the
command /bin/pwd reports 'target'. That applies for both bash and zsh(and maybe
other shells).

2. /proc/<pid>/cwd still refers to the target. That means %D or %d in the tab
title will say 'initial pwd is target' while the shell prompt and builtin will
say 'initial pwd is symlink'. Yes, you mentioned that.

So the main problem is the inconsistency, which might confuse users. 

> Nonetheless, this is much better than before.
Well, the current behavior is confusing, but the new behavior is also
confusing.  I'm not sure which one is better or less confusing: consistently
wrong, or inconsistently wrong?

Anyway, I am not against this patch myself.  Kurt, would you like to give some
comments ?

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the konsole-devel mailing list