Skip to content
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

'x' should be defined when using 'sage -c' #13598

Closed
jhpalmieri opened this issue Oct 13, 2012 · 7 comments
Closed

'x' should be defined when using 'sage -c' #13598

jhpalmieri opened this issue Oct 13, 2012 · 7 comments

Comments

@jhpalmieri
Copy link
Member

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.

CC: @kcrisman

Component: scripts

Author: John Palmieri

Reviewer: Punarbasu Purkayastha

Merged: sage-5.4.1.rc0

Issue created by migration from https://trac.sagemath.org/ticket/13598

@jhpalmieri
Copy link
Member Author

Attachment: trac_13598-x.patch.gz

scripts repo

@jhpalmieri

This comment has been minimized.

@jhpalmieri
Copy link
Member Author

comment:2

The line

from sage.calculus.predefined import x

is present in both all_cmdline.py and all_notebook.py, so it is executed during any normal Sage session.

@ppurka
Copy link
Member

ppurka commented Oct 14, 2012

Reviewer: Punarbasu Purkayastha

@ppurka
Copy link
Member

ppurka commented Oct 14, 2012

comment:3

Looks good to me. Maybe this was just an oversight earlier?

@jdemeyer
Copy link

Merged: sage-5.5.beta0

@jdemeyer
Copy link

jdemeyer commented Nov 5, 2012

Changed merged from sage-5.5.beta0 to sage-5.4.1.rc0

@jdemeyer jdemeyer modified the milestones: sage-5.5, sage-5.4.1 Nov 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants