#4381: sage -wthread not passed correctly to ipython
--------------------+-------------------------------------------------------
 Reporter:  jsp     |       Owner:  cwitty    
     Type:  defect  |      Status:  new       
 Priority:  major   |   Milestone:  sage-3.2.1
Component:  misc    |    Keywords:            
--------------------+-------------------------------------------------------
 Off sage-3.1.3 passing the argument -wthread is not correct. The argument
 -wthread must be the first argument passed to ipython in order to take
 effect.

 See the changes from sage-3.1.2 to sage-3.1.3 in the file
 $SAGE_ROOT/local/bin/sage-sage:


 {{{
 [EMAIL PROTECTED] bin]$ diff sage-sage ../../../sage-3.1.2/local/bin/sage-sage
 51d50
 <     echo "  -combinat <...> -- run sage-combinat patch management
 script"
 188a188,203
 > SAGE_STARTUP="
 > import sage.misc.misc; print \
 >
 sage.misc.misc.branch_current_hg_notice(sage.misc.misc.branch_current_hg());
 \
 > from sage.misc.interpreter import preparser; preparser(True);\
 > import sage.all_cmdline; sage.all_cmdline._init_cmdline(globals());\
 > from sage.all import Integer, RealNumber;\
 > import os; os.chdir(\"$CUR\");\
 > import sage.misc.interpreter;\
 > from sage.misc.interpreter import attached_files\
 > "
 >
 > if [ "$SAGE_IMPORTALL" != "no" ]; then
 >    SAGE_STARTUP_COMMAND="$SAGE_STARTUP"";from sage.all_cmdline import *"
 > else
 >    SAGE_STARTUP_COMMAND="$SAGE_STARTUP"
 > fi
 189a205,206
 >
 
SAGE_STARTUP_COMMAND="$SAGE_STARTUP_COMMAND"";_=sage.misc.interpreter.load_startup_file(\"$SAGE_STARTUP_FILE\")"
 > export SAGE_STARTUP_COMMAND
 200c217
 <     sage-ipython "$@" -i
 ---
 >     sage-ipython "$@" -c "$SAGE_STARTUP_COMMAND;"
 251,257d267
 < if [ $1 = '-combinat' -o $1 = '--combinat' ]; then
 <     cd "$CUR"
 <     shift
 <     sage-combinat "$@"
 <     exit $?
 < fi
 <
 514c524
 <    sage-ipython  $LOGOPT -rcfile="$IPYTHONRC" -i -c
 "$SAGE_STARTUP_COMMAND" "$@"
 ---
 >    sage-ipython  $LOGOPT -rcfile="$IPYTHONRC" -c "$SAGE_STARTUP_COMMAND"
 "$@"
 [EMAIL PROTECTED] bin]$


 }}}


 cwitty to the rescue?

 Jaap

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4381>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to