#302 EXT:RUN-PROGRAM with input/output strings

HEAD
closed
jackdaniel
extensions (1)
1
2015-05-06
2012-08-24
No

(with-output-to-string (s)
(ext:run-program "cat" '("/proc/interrupts") :output s))

Discussion


  • Anonymous
    2012-08-24

    It seems that it also affects to ECL integration with Slime. E.g.:

    CL-USER> (ext:run-program "cat" '("/proc/interrupts"))
    

    It fails showing this error:

    :ERROR argument to RUN-PROGRAM does not have a file handle:
    #<a SWANK-BACKEND::SLIME-OUTPUT-STREAM>
       [Condition of type SIMPLE-ERROR]
    
     
  • jackdaniel
    jackdaniel
    2015-02-25

    It is due to :error not handling :stream argument.

    Default value of :error is T, and it resolves to error-output, which is rebinded by slime to #

    see:
    https://sourceforge.net/p/ecls/mailman/message/33239223/

     
  • jackdaniel
    jackdaniel
    2015-02-25

    • status: open --> accepted
    • assigned_to: jackdaniel
     
  • jackdaniel
    jackdaniel
    2015-02-25

    Ticket moved from /p/ecls/feature-requests/13/

     
  • jackdaniel
    jackdaniel
    2015-02-25

    • labels: --> extensions
     
  • jackdaniel
    jackdaniel
    2015-05-06

    • status: accepted --> closed
     


Anonymous


Cancel   Add attachments