Re: [Haskell-cafe] Parsing command lines

2009-05-31 Thread Kalman Noel
Patai Gergely schrieb: is there a function that can safely split a command line into a FilePath to the executable and its parameters? In the yi source code, in HConf.Utils, there's a function that does part of what you want, but maybe incorrectly (because I wrote it, and it traverses the

[Haskell-cafe] Parsing command lines

2009-05-25 Thread Patai Gergely
Hello all, is there a function that can safely split a command line into a FilePath to the executable and its parameters? I couldn't manage to find one. If not, what are the pitfalls in creating a cross-platform solution to this problem? Can I assume that the first space not within double quotes

Re: [Haskell-cafe] Parsing command lines

2009-05-25 Thread Khudyakov Alexey
On Monday 25 of May 2009 18:57:28 Patai Gergely wrote: Hello all, is there a function that can safely split a command line into a FilePath to the executable and its parameters? I couldn't manage to find one. If not, what are the pitfalls in creating a cross-platform solution to this problem?