-
-
Notifications
You must be signed in to change notification settings - Fork 535
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
sage path-related troubles #4512
Comments
Attachment: trac-4512.patch.gz |
comment:1
This patch is for the |
comment:2
Could we at least have a PS1 that includes the current directory? I always hated it when I was on a machine where "sage -sh" didn't use my existing PS1. |
comment:3
Yeah, that would be very reasonable. Actually, we could go one further: have a specific place in |
comment:4
Craig, I am not so sure this is a blocker, i.e. just because your .profile is misconfigured doesn't mean that as a consequence somebody else's config will not be broken by fixing it for you. I am inclined to merge this patch, but I need to think about it. Cheers, Michael |
comment:5
Attachment: trac-4512-pt2.patch.gz trac-4512-pt2.patch addresses all my concerns even though it could be cleaner, i.e. via some special parameter. Craig will do so in a followup ticket, so positive review. Cheers, Michael |
comment:6
Merged both patch in Sage 3.2.rc1 |
Unfortunately, it seems that
sage -sh
doesn't ask the shell to avoid processing the.profile
or equivalent. In particular, it can lead to things like this:This comes from the fact that I manually prepend certain things to my path in my
.bashrc
. Sadly, this leads to several small, subtle issues. I've attached a patch which turns several calls tosage
into$SAGE_ROOT/sage
.However, something more serious is needed. I think that the right approach is to start the new shell without processing any login files, so that we know our path is correct. The patch does that.
I'm listing this as a blocker, because it causes such subtle errors, and because a fix is attached.
Component: build
Issue created by migration from https://trac.sagemath.org/ticket/4512
The text was updated successfully, but these errors were encountered: