Ticket #3659: scripts_3659.patch

File scripts_3659.patch, 1.1 KB (added by Mike Hansen, 14 years ago)
  • sage-sage

    # HG changeset patch
    # User Mike Hansen <mhansen@gmail.com>
    # Date 1216156662 18000
    # Node ID 98f0053bd3f52ce8e8298155e6afc4dffc01ec1f
    # Parent  a99ada1c8c29cf57817ba019276461ba1b6aeae3
    Add interactive command-line option so IPython 0.8.4 works with Sage
    
    diff -r a99ada1c8c29 -r 98f0053bd3f5 sage-sage
    a b  
    215215
    216216sage() {
    217217    sage_setup
    218     sage-ipython "$@" -c "$SAGE_STARTUP_COMMAND;"
     218    sage-ipython "$@" -i -c "$SAGE_STARTUP_COMMAND;"
    219219}
    220220
    221221if [ $# -eq 0 ]; then 
     
    522522   SAGE_BANNER="no"
    523523   sage_setup
    524524   shift
    525    sage-ipython  $LOGOPT -rcfile="$IPYTHONRC" -c "$SAGE_STARTUP_COMMAND" "$@"
     525   sage-ipython  $LOGOPT -rcfile="$IPYTHONRC" -i -c "$SAGE_STARTUP_COMMAND" "$@"
    526526   exit $?
    527527fi
    528528
     
    738738if [ $1 = '-mpl' -o $1 = "--mpl" ]; then
    739739   sage_setup
    740740   shift
    741    ipython  $LOGOPT -pylab -rcfile="$IPYTHONRC" -c "$SAGE_STARTUP_COMMAND;"
     741   ipython  $LOGOPT -pylab -rcfile="$IPYTHONRC" -i -c "$SAGE_STARTUP_COMMAND;"
    742742   exit $?   
    743743fi
    744744