[racket] Embedding multiline shell scipts

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Sun Feb 6 12:37:31 EST 2011

2011/2/6 Jukka Tuominen <jukka.tuominen at finndesign.fi>:
> I'm trying to embed multiline shell scripts within a scheme function, but
> I'm not quite sure how to do it.

Just a quick, ransom tip: Multi line strings can be written
conveniently with "here strings",

#<<SCRIPT
line1
line2
...
SCRIPT

See:
http://docs.racket-lang.org/reference/reader.html?q=here#(idx._(gentag._181._(lib._scribblings/reference/reference..scrbl)))

--
Jens Axel Søgaard



Posted on the users mailing list.