Re: [Haskell-cafe] Parsing command lines

31 May
2009
31 May
'09
5:04 a.m.
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 string in a rather primtive way). -- | Break up a string the way a shell breaks up a command into arguments. -- Similar to 'words', but respects quotes and escaped spaces. TODO: Verify -- this function. shellWords :: String -> [String]
5834
Age (days ago)
5834
Last active (days ago)
0 comments
1 participants
participants (1)
-
Kalman Noel