Re: [Haskell-cafe] GHC RTS question

2010-02-24 Thread Roman Cheplyaka
* Artyom Kazak [2010-02-24 10:23:07+0200] > 2010/2/24 Brandon S. Allbery KF8NH : > > On Feb 22, 2010, at 03:36 , Roman Cheplyaka wrote: > >> > >> * Anthony Cowley [2010-02-21 14:15:00-0500] > >>> > >>> #! /usr/bin/env bash > >>> ./prog --RTS $* > >> > >>  ./prog --RTS "$@" > >> > >> Otherwise it

Re: [Haskell-cafe] GHC RTS question

2010-02-24 Thread Artyom Kazak
2010/2/24 Brandon S. Allbery KF8NH : > On Feb 22, 2010, at 03:36 , Roman Cheplyaka wrote: >> >> * Anthony Cowley [2010-02-21 14:15:00-0500] >>> >>> #! /usr/bin/env bash >>> ./prog --RTS $* >> >>  ./prog --RTS "$@" >> >> Otherwise it will work wrong if arguments contain quoted field >> separators (

Re: [Haskell-cafe] GHC RTS question

2010-02-23 Thread Brandon S. Allbery KF8NH
On Feb 22, 2010, at 03:36 , Roman Cheplyaka wrote: * Anthony Cowley [2010-02-21 14:15:00-0500] #! /usr/bin/env bash ./prog --RTS $* ./prog --RTS "$@" Otherwise it will work wrong if arguments contain quoted field separators (e.g. spaces). #! /bin/sh ./prog --RTS ${1+"$@"} The longer

Re: [Haskell-cafe] GHC RTS question

2010-02-22 Thread Roman Cheplyaka
* Anthony Cowley [2010-02-21 14:15:00-0500] > 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 th

Re: [Haskell-cafe] GHC RTS question

2010-02-22 Thread minh thu
2010/2/22 Ivan Miljenovic : > On 22 February 2010 10:55, Lennart Augustsson wrote: >> Supply a fix for the problem, and it will probably get included. >> There has probably been little demand for this feature so far. > > But it is a little bit weird where if you have an application that you > rele

Re: [Haskell-cafe] GHC RTS question

2010-02-21 Thread Ivan Miljenovic
On 22 February 2010 10:55, Lennart Augustsson wrote: > Supply a fix for the problem, and it will probably get included. > There has probably been little demand for this feature so far. But it is a little bit weird where if you have an application that you release into production (which, admittedl

Re: [Haskell-cafe] GHC RTS question

2010-02-21 Thread Lennart Augustsson
Supply a fix for the problem, and it will probably get included. There has probably been little demand for this feature so far. -- Lennart On Sun, Feb 21, 2010 at 10:21 PM, Ben Millwood wrote: > On Sun, Feb 21, 2010 at 7:10 PM, Max Bolingbroke > wrote: >> >> You might be able to get somewhere

Re: [Haskell-cafe] GHC RTS question

2010-02-21 Thread Ben Millwood
On Sun, Feb 21, 2010 at 7:10 PM, Max Bolingbroke wrote: > > You might be able to get somewhere by writing a custom "main" function > in C and linking it in. According to > http://haskell.org/ghc/docs/latest/html/users_guide/options-phases.html > if a lib specified with the -l option during compila

Re: [Haskell-cafe] GHC RTS question

2010-02-21 Thread Daniel Fischer
Am Sonntag 21 Februar 2010 19:58:12 schrieb Artyom Kazak: > 2010/2/21 Daniel Fischer : > > Am Sonntag 21 Februar 2010 18:20:43 schrieb Artyom Kazak: > >> > Enclose it in double quotes (perhaps single quotes would also work) > >> > >> No, I want my program to work the same way as UNIX "echo" does. >

Re: [Haskell-cafe] GHC RTS question

2010-02-21 Thread 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

Re: [Haskell-cafe] GHC RTS question

2010-02-21 Thread Max Bolingbroke
On 21 February 2010 18:58, 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

Re: [Haskell-cafe] GHC RTS question

2010-02-21 Thread Artyom Kazak
2010/2/21 Daniel Fischer : > Am Sonntag 21 Februar 2010 18:20:43 schrieb Artyom Kazak: >> > Enclose it in double quotes (perhaps single quotes would also work) >> >> No, I want my program to work the same way as UNIX "echo" does. >> Without any double quotes. > > Okay, what about > > "If you absolu

Re: [Haskell-cafe] GHC RTS question

2010-02-21 Thread Daniel Fischer
Am Sonntag 21 Februar 2010 18:20:43 schrieb Artyom Kazak: > > Enclose it in double quotes (perhaps single quotes would also work) > > No, I want my program to work the same way as UNIX "echo" does. > Without any double quotes. Okay, what about "If you absolutely positively want all the rest of th

Re: [Haskell-cafe] GHC RTS question

2010-02-21 Thread Artyom Kazak
> Enclose it in double quotes (perhaps single quotes would also work) No, I want my program to work the same way as UNIX "echo" does. Without any double quotes. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo

Re: [Haskell-cafe] GHC RTS question

2010-02-21 Thread Daniel Fischer
Am Sonntag 21 Februar 2010 16:45:22 schrieb Artyom Kazak: > Hello everybody! > I want to write a little program, that will receive a string as > command-line argument and write it in the file. But if this string > contains '+RTS', GHC runtime won't pass the rest of the string to my > program. > Wha

Re: [Haskell-cafe] GHC RTS question

2010-02-21 Thread Felipe Lessa
On Sun, Feb 21, 2010 at 05:45:22PM +0200, Artyom Kazak wrote: > Hello everybody! > I want to write a little program, that will receive a string as command-line > argument and write it in the file. But if this string contains '+RTS', GHC > runtime won't pass the rest of the string to my program. > W

[Haskell-cafe] GHC RTS question

2010-02-21 Thread Artyom Kazak
Hello everybody! I want to write a little program, that will receive a string as command-line argument and write it in the file. But if this string contains '+RTS', GHC runtime won't pass the rest of the string to my program. What can I do to avoid this?