prompt display when cd to dir symoblic link
Harald Becker
ralda at gmx.de
Thu Apr 2 08:08:31 UTC 2015
On 02.04.2015 09:28, Denys Vlasenko wrote:
> Yes, bash shows that, but the *real* getcwd system call
> returns "/hdd1/test" in this case.
>
> You *can't* have a symlink as a current directory.
> It's just not possible in Linux.
So just modify santosh's question:
Why can't we use and display the same value for \w in prompt string, as
the pwd command does? IMO it should exactly do that.
... but I can't find the location in BB ash.c, where this \w is replaced
with the directory name :( ... (any hint?)
--
Harald
More information about the busybox
mailing list