[Shell-escape] Escape toggle with \ prefix
E.g.
check file.hs
will treat quote characters as literal characters, while
\check file.hs
will assume quoting behavior
Backslash will be dropped, naturally.
This commit is contained in:
@@ -36,4 +36,6 @@ go (c:cl) curarg accargs quotes
|
||||
| otherwise = go cl (c:curarg) accargs quotes
|
||||
|
||||
parseCmdLine :: String -> [String]
|
||||
parseCmdLine comline = go comline [] [] False
|
||||
parseCmdLine ('\\':comline) = go comline [] [] False
|
||||
parseCmdLine [] = [""]
|
||||
parseCmdLine comline = words comline
|
||||
|
||||
Reference in New Issue
Block a user