[Haskell-cafe] Re: Parsing command lines

Patai Gergely patai_gergely at fastmail.fm
Mon May 25 11:45:12 EDT 2009


> There getArgs and getProgName in System module. If you want
> parse this parameters there is System.Console.GetOpt.
Those will only tell me how my program was called. I want to work with
command lines as data within my program, which is a completely different
thing.

> All the splitting, escaping and quotes interpretaion is done by
> shell. All what get program when starts is list of
> strings. Program name is actually arbitrary string. (At least
> on unices, it may work a bit differently on windows).
That's fine, but I'll see the commands yet to be passed to the shell as
strings, and I'd like to know where to split them.

Gergely

-- 
http://www.fastmail.fm - The professional email service



More information about the Haskell-Cafe mailing list