#13597: tutorial: fix hash-bang in section on programming
-------------------------------------+-------------------------------------
Reporter: jhpalmieri | Owner: mvngu
Type: defect | Status: needs_review
Priority: minor | Milestone: sage-6.4
Component: documentation | Resolution:
Keywords: | Merged in:
Authors: Jeroen Demeyer | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/jdemeyer/tutorial__fix_hash_bang_in_section_on_programming|
99c96af9aeab5460ec0a75462786cfbb94f69c86
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by jhpalmieri):
I think this is the right thing to do. First, we should certainly not
advocate `#!/usr/bin/env` followed by multiple arguments. Second, I just
tried the script from the tutorial but with just `#!/usr/bin/env sage` at
the top. It worked fine, but it didn't work if I removed `from sage.all
import *`:
{{{
Traceback (most recent call last):
File "./my_script", line 10, in <module>
print factor(sage_eval(sys.argv[1]))
NameError: name 'factor' is not defined
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/13597#comment:10>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.