- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve symbolic links in $HOME/.sage #11704
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Dependencies: #5852 |
Changed dependencies from #5852 to none |
Dependencies: #11924 |
comment:12
Replying to @jhpalmieri:
We cannot put it in a seperate file because |
comment:13
Well, what's the purpose of canonicalizing SAGE_ROOT in the |
comment:14
Replying to @jhpalmieri:
It's precisely for the reason I said: we need to be able to determine a usable value of It's true that it doesn't matter that it's canonical, but we still need to dereference symbolic links in I agree the code duplication is not so nice, but I still think the patch can be reviewed as-is. |
Reviewer: John Palmieri |
comment:16
Amazing, this causes
|
comment:17
I keep positive review here, the latter problem is now #12221. |
Attachment: 11704.patch.gz Patch to the SCRIPTS repository (local/bin) |
comment:18
I changed the patch slightly to add the slash after $DOT_SAGE. I don't see how this could cause #12221, but it seems safer to keep the slash, just like it was before. Needs review please. |
comment:20
John, can you please review this new revised patch? |
comment:21
The only real change is to append the slash, right? It works for me in my testing. |
Merged: sage-4.8.alpha6 |
Similarly to
SAGE_ROOT
, it might be good to resolve symbolic links in$HOME/.sage
when assigningDOT_SAGE
. This can be useful for example when$HOME/.sage
is a symbolic link to a non-existent directory (the directory would be created later insage-sage
).Probably we should use whatever solution comes from #5852.
Depends on #11924
CC: @nexttime
Component: scripts
Author: Jeroen Demeyer
Reviewer: John Palmieri
Merged: sage-4.8.alpha6
Issue created by migration from https://trac.sagemath.org/ticket/11704
The text was updated successfully, but these errors were encountered: