The script itself could be considered as a single block returning a single output at the end.
I tried the code, and I think it's almost there. To test it, I just added "ls" at the end of the sample script. It prints the directories and files nicely, but I cannot capture them for further processing. If the stdout's value can be returned as output at the end (after closing the ports) instead of printing it (side effect) in the middle, it would behave something like system/output, AFAIC. Now, how do you return it instead of printing it? I tried something but either got a port or a #t for successful printing :) br, jukka > -----Original Message----- > From: users-boun...@racket-lang.org > [mailto:users-boun...@racket-lang.org]On Behalf Of Thomas Chust > Sent: 06 February 2011 17:15 > To: Manfred Lotz > Cc: users@racket-lang.org > Subject: Re: [racket] Embedding multiline shell scipts > > > 2011/2/6 Manfred Lotz <manfred.l...@arcor.de>: > > [...] > > I don't know how to merge stdout and stderr in proper sequence. > > [...] > > There is no such thing as proper sequencing of data flowing through > different streams. > > Due to buffering in system libraries and the operating system kernel > it is also entirely impossible to reliably process the output data in > the exact sequence it was produced by the external process. > > Ciao, > Thomas > > > -- > When C++ is your hammer, every problem looks like your thumb. > _________________________________________________ > For list-related administrative tasks: > http://lists.racket-lang.org/listinfo/users _________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users