[Haskell-cafe] Parsing command lines
patai_gergely at fastmail.fm
Mon May 25 10:57:28 EDT 2009
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 and
not preceded by an unescaped backslash marks the end of the executable
path, or is that too naive (or completely wrong)?
http://www.fastmail.fm - A fast, anti-spam email service.
More information about the Haskell-Cafe