-
-
Notifications
You must be signed in to change notification settings - Fork 568
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
Add support for a "sagerc" script #12647
Comments
comment:1
This still needs a documentation patch. |
Author: Jeroen Demeyer |
comment:3
Attachment: 12647_sagerc_doc.patch.gz |
This comment has been minimized.
This comment has been minimized.
comment:4
Replying to @jhpalmieri:
I created a new file in the reference manual mentioning |
Reviewer: John Palmieri |
comment:5
In a line like if [ "$SAGE_RC_FILE" = "" ]; then is there any advantage to replacing the test with See the review patch for two minor changes to the documentation. Otherwise, positive review. |
This comment has been minimized.
This comment has been minimized.
Attachment: trac_12647-review.patch.gz |
comment:6
(The "review patch" needs review.) |
comment:7
Replying to @jhpalmieri:
As far as I know, these two tests are identical. But I changed it to use Review patch is obviously fine. |
comment:8
How about adding a commented template rc file, with examples for Maybe on a follow-up ticket? (Unfortunately I meanwhile forgot most of what I had in mind... :-/ ) |
comment:9
Minor flaw: echo >&2 "Error sourcing $DOT_SAGE/sagerc" should read echo >&2 "Error sourcing $SAGE_RC_FILE" AFAIK |
comment:10
Replying to @nexttime:
does support |
comment:11
Setting Fixed the minor flaw, thanks for that. |
comment:12
Attachment: 12647_sagerc.patch.gz In some other ticket there were some concerns raised about the non-portability of |
comment:13
Replying to @ppurka:
Presumably, the |
comment:14
Replying to @jdemeyer:
Sun's "default" Probably even the XPG one doesn't; I don't recall. It at least used to be a GNU extension. |
comment:15
Regarding the use of sed here, this script is used every time Sage is run, and it hasn't caused any problems on any platform, presumably because (as Jeroen points out) this part only matters on Cygwin. So I don't see any need to change anything. |
comment:16
Replying to @jhpalmieri:
Oh, I thought this discussion was unrelated to the ticket anyway... 8) But now I see it is on topic... But never mind... |
comment:17
Replying to @jdemeyer:
I see. I was pretty sure we'd source We could of course implement (But perhaps the easiest way is to make |
Merged: sage-5.0.beta9 |
comment:19
The patch to |
comment:20
Replying to @nexttime:
Can you explain that? I thought that first sage-env was run, then spkg-install was run (via sage-spkg). So how can exporting (an empty) |
comment:21
Replying to @nexttime:
... or probably not (it's late). Actually any |
comment:22
Replying to @jhpalmieri:
It would have helped only if |
comment:23
Exporting a variable which you don't set has no effect. Since Example (GNU bash version 4.0.35(1)-release if it matters):
|
comment:24
Replying to @jdemeyer:
Of course. But we [still] have things like if [ "$LDFLAGS" = "" ]; then
LDFLAGS="" && export LDFLAGS
fi
if [ "$CXXFLAGS" = "" ]; then
export CXXFLAGS="$CFLAGS"
fi in I think we should either do that there for all such variables, or none of them. Especially setting |
This deals with adding support for a file
which will be sourced after
sage-env
, so it can be used to override the environment variables used in Sage.Apply:
SAGE_ROOT
.Component: scripts
Author: Jeroen Demeyer
Reviewer: John Palmieri
Merged: sage-5.0.beta9
Issue created by migration from https://trac.sagemath.org/ticket/12647
The text was updated successfully, but these errors were encountered: