#13598: 'x' should be defined when using 'sage -c'
---------------------------------+------------------------------------------
Reporter: jhpalmieri | Owner: leif
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.5
Component: scripts | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: John Palmieri | Merged in:
Dependencies: | Stopgaps:
---------------------------------+------------------------------------------
Changes (by jhpalmieri):
* status: new => needs_review
Old description:
> Sage currently doesn't defined the variable 'x' when using `sage -c`:
> {{{
> $ sage -c "print x"
> Traceback (most recent call last):
> File
> "/Users/palmieri/Desktop/Sage_stuff/sage_builds/sage-5.4.rc1/local/bin
> /sage-eval", line 13, in <module>
> eval(compile(s,'<cmdline>','exec'))
> File "<cmdline>", line 1, in <module>
> NameError: name 'x' is not defined
> }}}
> We should fix this.
New description:
Sage currently doesn't defined the variable 'x' when using `sage -c`:
{{{
$ sage -c "print x"
Traceback (most recent call last):
File
"/Users/palmieri/Desktop/Sage_stuff/sage_builds/sage-5.4.rc1/local/bin
/sage-eval", line 13, in <module>
eval(compile(s,'<cmdline>','exec'))
File "<cmdline>", line 1, in <module>
NameError: name 'x' is not defined
}}}
We should fix this.
Apply [attachment:trac_13598-x.patch] to the scripts repository.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13598#comment:1>
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.