Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
resolver: dir namespace with symlinks #2656
Steps to Reproduce the Problem
mkdir -p /tmp/world/folder /tmp/other cd /tmp/world kdb set dir/tests/hello world cd /tmp/other kdb set dir/tests/hello other ln -s ../world/folder folder cd /tmp/other/folder kdb get dir/tests/hello
That "other" is printed because I was in /tmp/other.
"world" is printed.
? It does not make a difference. I am afraid we have a problem here which cannot solved with POSIX.
We could execute
Did you make a bug report?
I had another look at your problem and I think this is not a bug, but a decision we need to make.
The base scenario is:
Now the decision we need to make is do we:
Both of these options seem valid to me and are purely a matter of preference. If we want to have option B), we could use
In my situation the option B makes much more sense. My folders look like this:
The folder scripts is shared, so it is symlinked from one project to the other. As workaround I now avoid changing to this directory and I have put an invalid configuration into scripts (to get an error if I accidentally have been in the folder).
Yes, this would work but it would also introduce another source of error (PWD sometimes is inconsistent). And we would be back to the discussion of #734.