#181 Xmaxima does not display system output

closed
nobody
5
2008-06-28
2002-11-08
No

Under CMUCL, I think the output of system goes to
/dev/null. I changed this by changing the $system
to [in macsys.lisp]

#+cmu
(defun $system (&rest args)
(ext:run-program "/bin/sh" (list "-c" (apply
'$sconcat args)) :output t))

Now, things like system("ls") work fine for me using
maxima in a Xemacs shell, but under xmaxima
I still don't get any output from system.

Barton

Discussion

  • Robert Dodier

    Robert Dodier - 2006-03-27

    Logged In: YES
    user_id=501686

    system function seems to work OK with cmucl (5.9.1 / cmucl
    19a on linux), but system in Xmaxima still shows nothing
    (probably Xmaxima fails to capture the output stream or
    something). Changing the title to focus on Xmaxima.

     
  • Robert Dodier

    Robert Dodier - 2006-03-27
    • labels: --> Xmaxima or other UI
    • summary: CMUCL & system --> Xmaxima does not display system output
     
  • Robert Dodier

    Robert Dodier - 2007-06-02

    Logged In: YES
    user_id=501686
    Originator: NO

    Same behavior (system output OK w/ command line Maxima, no output shown in XMaxima) observed with Maxima 5.12.0 + GCL 2.6.8 + Windows Vista.

     
  • Robert Dodier

    Robert Dodier - 2008-06-28
    • status: open --> closed
     
  • Robert Dodier

    Robert Dodier - 2008-06-28

    Logged In: YES
    user_id=501686
    Originator: NO

    Fixed about as well as it can be by r1.67 src/macsys.lisp: see if *SOCKET-CONNECTION* is bound, and if so, direct output into *SOCKET-CONNECTION*.

    Apparently GCL and Clisp cannot redirect output into an already-open stream. So this new patch won't have any effect on them. Closing this report as fixed anyway; there's nothing we can do for GCL or Clisp.

    Verified that new patch has desired effect for CMUCL and SBCL. Hope it works for SCL, Allegro, OpenMCL, and ABCL.

     

Log in to post a comment.