Opened 12 years ago
Last modified 6 years ago
#3398 new defect
make "sage -c" load init.sage on startup
Reported by: | was | Owned by: | cwitty |
---|---|---|---|
Priority: | major | Milestone: | sage-6.4 |
Component: | misc | Keywords: | |
Cc: | Merged in: | ||
Authors: | Reviewers: | ||
Report Upstream: | Work issues: | ||
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
> I have defined a function that starts up the notebook server with my > desired preferences and placed the function definition into my > init.sage script, so that whenever I use the command line, I don't > have to remember the whole thing to start it up. Works fine. > > Since I usually go straight to the notebook, I figured just running: > sage -c "snote()" > would do the trick. But apparently init.sage isn't executed before the > -c command. > > I already know ways to start the notebook conveniently from the > command line so I'm not worried about that, but I was wondering if > that was the correct and desired behavior of -c. Perhaps we could have > another similar argument ( -C ?) that executes init.sage before > executing the command? I think it's a bug that 'sage -c' doesn't load init.sage first. Does anybody think differently? If nobody disagrees, I'll add a trac ticket.
Change History (4)
comment:1 Changed 7 years ago by
- Milestone changed from sage-5.11 to sage-5.12
comment:2 Changed 7 years ago by
- Milestone changed from sage-6.1 to sage-6.2
comment:3 Changed 7 years ago by
- Milestone changed from sage-6.2 to sage-6.3
comment:4 Changed 6 years ago by
- Milestone changed from sage-6.3 to sage-6.4
Note: See
TracTickets for help on using
tickets.