-
-
Notifications
You must be signed in to change notification settings - Fork 655
Closed
Description
Dear Sage-Devels,
Let me again thank you for the excellent work put in building sage.
I've found a bug in the most recent release. Specifically, when
invoked with the -notebook switch, the current release does not
properly quote paths. So, if I execute:
/Applications/sage/sage -notebook "/Users/carson/doc/math/
sage_notebook/"
Sage says:
Traceback (most recent call last):
File "/Applications/sage/local/bin/sage-notebook", line 14, in
<module>
exec "notebook(" + ",".join(sys.argv[1:]) + ")"
File "<string>", line 1
notebook(/Users/carson/doc/math/sage_notebook/)
^
SyntaxError: invalid syntax
If I edit the offending line in local/bin/sage-notebook:
exec "notebook(" + ",".join(sys.argv[1:]) + ")"
To instead read:
exec "notebook('" + ",".join(sys.argv[1:]) + "')"
Then the -notebook switch works as expected. Please consider using the
following sage-notebook file to correct this bug:
http://bentham.k2.t.u-tokyo.ac.jp/media/bugs/sage/sage-notebook
Cheers,
Makes sense. This was indeed caused by a patch in the last version of sage.
Component: notebook
Issue created by migration from https://trac.sagemath.org/ticket/4734