File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -452,9 +452,9 @@ main = handleExit $ withGhcDebug' $ do
452452 let
453453 addonargs0 = filter (/= " --" ) $ supportedgenargsfromconf <> confcmdargs <> cliargswithoutcmd
454454 addonargs = dropCliSpecificOpts addonargs0
455- shellcmd = printf " %s-%s %s" progname cmdname (unwords' addonargs) :: String
455+ shellcmd = printf " %s-%s %s" progname cmdname (unwords $ map quoteForCommandLine addonargs) :: String
456456 dbgio " addon command selected" cmdname
457- dbgio " addon command arguments after removing cli-specific opts " ( map quoteIfNeeded addonargs)
457+ dbgio " addon command arguments" addonargs
458458 dbg1IO " running addon" shellcmd
459459 system shellcmd >>= exitWith
460460
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ runCommand defaultJournalOverride findBuiltinCommand addons cmdline = do
160160 then run (Just jpaths) findBuiltinCommand addons opts
161161 else cmdaction opts j
162162 Nothing | cmdname `elem` addons ->
163- system (printf " %s-%s %s" progname cmdname (unwords' args)) >>= exitWith
163+ system (printf " %s-%s %s" progname cmdname (unwords $ map quoteForCommandLine args)) >>= exitWith
164164 Nothing ->
165165 error' $ " Unrecognized command: " ++ unwords (cmdname: args)
166166 [] -> return ()
You can’t perform that action at this time.
0 commit comments