#11790: `sage --sh -c ...` shouldn't print [that many] messages
---------------------------------------------+------------------------------
Reporter: leif | Owner:
Type: defect | Status: positive_review
Priority: blocker | Milestone: sage-5.0
Component: scripts | Keywords: subshell
commands sage-sage environment batch mode stdout
Work_issues: | Upstream: N/A
Reviewer: Jeroen Demeyer, John Palmieri | Author: John Palmieri,
Jeroen Demeyer
Merged: | Dependencies: #12647
---------------------------------------------+------------------------------
Comment(by jdemeyer):
Replying to [comment:32 jhpalmieri]:
> Regarding the use of "exec", which was suggested by Leif, was in my
version of the patch, and is in the current patch: if we want to be able
to do something like `sage --norc -c ...` (as in #11932), then we want to
be able to delete the temporary `DOTSAGE` directory after the Sage command
finishes. Using "exec" prevents this, doesn't it?
Using `exec` '''here''' doesn't prevent that. It just means that we
cannot implement `--norc` itself using `exec`, which is fine.
Example:
scriptA does
{{{
scriptB
cleanup
}}}
scriptB does
{{{
exec scriptC
cleanup2
}}}
The `exec` in `scriptB` doesn't prevent the `cleanup` in `scriptA`, it
only prevents the `cleanup2` in `scriptB`.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11790#comment:33>
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.