Skip to content
Snippets Groups Projects
Commit 9b43c2ba authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Account more accurately for command line chunk size.

parent 6a516e82
No related branches found
No related tags found
No related merge requests found
......@@ -181,7 +181,7 @@ rawSystemPathExit verbose prog args = do
xargs :: Int -> (FilePath -> [String] -> IO ExitCode)
-> FilePath -> [String] -> [String] -> IO ExitCode
xargs maxSize rawSystem prog fixedArgs bigArgs =
let fixedArgSize = sum (map length fixedArgs)
let fixedArgSize = sum (map length fixedArgs) + length fixedArgs
chunkSize = maxSize - fixedArgSize
loop [] = return ExitSuccess
loop (args:remainingArgs) = do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment