Ticket #12263: 12263_unset_TERM.patch

File 12263_unset_TERM.patch, 660 bytes (added by jdemeyer, 8 years ago)
  • sage-sage

    # HG changeset patch
    # User Jeroen Demeyer <jdemeyer@cage.ugent.be>
    # Date 1325696184 -3600
    # Node ID 3c7bc41602a5713d634659bcfd24b87690114411
    # Parent  3d59313594af0cc51ea4d068a675131bad7f4d5e
    Unset TERM when running sage non-interactively
    
    diff --git a/sage-sage b/sage-sage
    a b  
    783783   shift
    784784   SAGE_BANNER="no"
    785785   sage_setup
     786   unset TERM  # See Trac #12263
    786787   sage-eval "$@"
    787788   exit $?
    788789fi
     
    10391040       exit $?
    10401041   fi
    10411042   cd "$SAGE_LOCAL/bin/"
    1042    SAGE_BANNER="no" sage_setup
     1043   SAGE_BANNER="no"
     1044   sage_setup
     1045   unset TERM  # See Trac #12263
    10431046   sage-run "$CUR" "$@"
    10441047   exit $?
    10451048fi