
* Anthony Cowley
On Sun, Feb 21, 2010 at 1:58 PM, Artyom Kazak
wrote: So, if I type "./prog +RTS --RTS +RTS", the output will be "+RTS". But I want the output to be equal to the input IN ALL CASES, without any quotes, additional options, etc. I want all the command line to go to my program. How can I do it? (The only way I know now - hacking the GHC. If there are no other ways, I'll do it.)
How about a wrapper script? Something like,
#! /usr/bin/env bash ./prog --RTS $*
Just use that as the front-end to your Haskell program.
If you want Haskell program to get exactly the same arguments that were passed to the wrapper, use ./prog --RTS "$@" Otherwise it will work wrong if arguments contain quoted field separators (e.g. spaces). -- Roman I. Cheplyaka :: http://ro-che.info/ "Don't let school get in the way of your education." - Mark Twain