scsh-users
[Top] [All Lists]

run/collecting, not threads

To: scsh-users@scsh.net
Subject: run/collecting, not threads
From: Emilio Lopes <eclig@gmx.net>
Date: Tue, 25 Apr 2006 19:35:56 +0200
Cancel-lock: sha1:MriuDUDyY+Wx1ydPAf+x5MsRAIE=
List-id: <scsh-users.list-id.scsh.net>
Organization: The Church of Emacs
Sender: news <news@sea.gmane.org>
After I defeated my last "bug report" with my own stupidity, here is
my second try.  I hope I got it right this time.


   Welcome to scsh 0.6.6 (King Conan)
   Type ,? for help.
   > (define my-ls/simple
     (lambda ()
       (display (run/string (ls)))
       (newline)))
   > (define my-ls/complex
     (lambda ()
       (receive
           (rc out err)
           (run/collecting (1 2) (ls))
         (display (port->string out))
         (newline))))
   > (my-ls/simple)
   big
   cig
   doc
   env
   libscsh.a
   libscshvm.a
   link
   misc
   opt
   rts
   scsh
   scsh.image
   scshvm.exe
   srfi
   stripped-scsh.image

   > (my-ls/complex)
   big
   cig
   doc
   env
   libscsh.a
   libscshvm.a
   link
   misc
   opt
   rts
   scsh
   scsh.image
   scshvm.exe
   srfi
   stripped-scsh.image

   > ,open threads
   > (spawn my-ls/simple)
   > big
   cig
   doc
   env
   libscsh.a
   libscshvm.a
   link
   misc
   opt
   rts
   scsh
   scsh.image
   scshvm.exe
   srfi
   stripped-scsh.image


   > (spawn my-ls/complex)
   > 
   > ;; no output!!!

If you substitute `ls' by something appropriate, like `touch /tmp/foobar',
you'll see that the command does not get executed at all.

Thanks for any insight.

-- 
Emílio C. Lopes
Munich, Germany

<Prev in Thread] Current Thread [Next in Thread>