[Haskell-cafe] GHC RTS question
Roman Cheplyaka
roma at ro-che.info
Mon Feb 22 03:36:56 EST 2010
* Anthony Cowley <acowley at seas.upenn.edu> [2010-02-21 14:15:00-0500]
> On Sun, Feb 21, 2010 at 1:58 PM, Artyom Kazak <artyom.kazak at gmail.com> 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
More information about the Haskell-Cafe
mailing list