#11790: `sage --sh -c ...` shouldn't print [that many] messages
------------------------------+---------------------------------------------
Reporter: leif | Owner:
Type: defect | Status: needs_review
Priority: minor | Milestone: sage-4.7.2
Component: scripts | Keywords: subshell commands sage-sage
environment batch mode stdout
Work_issues: | Upstream: N/A
Reviewer: Jeroen Demeyer | Author: John Palmieri
Merged: | Dependencies: #11866
------------------------------+---------------------------------------------
Changes (by jhpalmieri):
* status: needs_work => needs_review
Comment:
Here is version 3 of the patch. This implements Leif's idea about
./sage/.sagerc, in a simple-minded way. It also checks for the
environment variable `SAGE_SHPROMPT`.
My opinion is that the prompt for the Sage shell should indicate '''very
clearly''' that this is a Sage shell, so the default in this patch is for
it to start with "(sage-sh)" in reverse video. If you don't like it, you
can override it by setting `PS1` in .sagerc or by setting `SAGE_SHPROMPT`
anywhere.
This also doesn't print any warning message or even set the prompt if
`sage -sh` is followed by more arguments. I'm not sure I'm happy about
that, in particular the potential lack of a different prompt.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11790#comment:21>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.