Ticket #10302: trac_10302-sage-sh.patch

File trac_10302-sage-sh.patch, 588 bytes (added by jhpalmieri, 11 years ago)

scripts repo

  • sage-sage

    # HG changeset patch
    # User J. H. Palmieri <palmieri@math.washington.edu>
    # Date 1290295148 28800
    # Node ID e412adf13f261991dfe1c1a32901897e4281e1a9
    # Parent  c48299b9dd5e54831a07479303d0630275d1e9ef
    #10302: sage -sh should return with the appropriate exit code
    
    diff -r c48299b9dd5e -r e412adf13f26 sage-sage
    a b if [ "$1" = '-sh' -o "$1" = '--sh' ]; t 
    429429
    430430    $SHELL_NAME $SHELL_OPTS "$@"
    431431
     432    status=$?
    432433    echo Exited Sage subshell.
    433     exit $?
     434    exit $status
    434435fi
    435436
    436437if [ "$1" = '-gdb-ipython'  -o "$1" = '--gdb-ipython' ]; then