aboutsummaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorranden <randen@users.noreply.github.com>2015-07-30 14:49:08 -0700
committerranden <randen@users.noreply.github.com>2015-07-30 14:49:08 -0700
commit9affe8f6b3a9b07367c8c14162aecea8b15856a6 (patch)
treed0839307c860e6e9c26bf4841c90a2105bfc1112 /driver
parentb7fa3020ca8af55688c45a219a5418b21d91beec (diff)
Break the response file by line termination rather
than spaces, since spaces may be within the parameters. This simple approach avoids having the need for any quoting and/or escaping (although a newline char will not be possible in a parameter and has no escape mechanism to allow it).
Diffstat (limited to 'driver')
-rw-r--r--driver/Main.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/Main.hs b/driver/Main.hs
index 5097a86d..ccbb8b7d 100644
--- a/driver/Main.hs
+++ b/driver/Main.hs
@@ -20,7 +20,7 @@ expandResponse :: [String] -> IO [String]
expandResponse = fmap concat . mapM expand
where
expand :: String -> IO [String]
- expand ('@':f) = readFileExc f >>= return . filter (not . null) . words
+ expand ('@':f) = readFileExc f >>= return . filter (not . null) . lines
expand x = return [x]
readFileExc f =