Ticket #13588: trac_13588_exec_fix.patch

File trac_13588_exec_fix.patch, 750 bytes (added by vbraun, 9 years ago)

Updated patch

  • sage/libs/gap/element.pyx

    # HG changeset patch
    # User Volker Braun <vbraun.name@gmail.com>
    # Date 1356612453 0
    # Node ID 0002ff91d54a87602a0f94599a9632798b757b2d
    # Parent  4387f9218fc895ce24795e117eeedf5a2f2b8fd9
    Doctest that the GAP Exec command works in libGAP
    
    diff --git a/sage/libs/gap/element.pyx b/sage/libs/gap/element.pyx
    a b  
    13221322            ...           print 'because Sum needs a list as argument'
    13231323            ...       except ValueError:
    13241324            ...           pass
     1325
     1326            sage: libgap_exec = libgap.eval("Exec")
     1327            sage: libgap_exec('echo hello from the shell > /dev/null')
    13251328        """
    13261329        cdef libGAP_Obj result = NULL
    13271330        cdef libGAP_Obj arg_list