[plt-scheme] process.ss bug

From: Robby Findler (robby at cs.uchicago.edu)
Date: Mon May 29 11:23:05 EDT 2006

I don't think so: process returns a list. Perhaps you meant to write

 (apply values (process "/usr/bin/ls"))

on the rhs of the let-values?

Robby

At Mon, 29 May 2006 16:18:17 +0100, "Paulo J. Matos" wrote:
> Hi all, (DrScheme, version 301.16-svn25may2006)
> 
> (let-values ([(stdout stdin pid stderr proc) (process "/usr/bin/ls")])
>     (printf "DONE!"))
> 
> This results in:
> context (lexical binding) expected 5 values, received 1 value:
> (#<input-port:subprocess-stdout> #<output-port:subprocess-stdin> 13702
> #<input-port:subprocess-stderr> #<procedure:control>)
> 
> A bug?
> 
> Cheers,
> -- 
> Paulo Jorge Matos - pocm at sat inesc-id pt
> Web: http://sat.inesc-id.pt/~pocm
> Computer and Software Engineering
> INESC-ID - SAT Group
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme


Posted on the users mailing list.