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
452
452
let
453
453
addonargs0 = filter (/= " --" ) $ supportedgenargsfromconf <> confcmdargs <> cliargswithoutcmd
454
454
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
456
456
dbgio " addon command selected" cmdname
457
- dbgio " addon command arguments after removing cli-specific opts " ( map quoteIfNeeded addonargs)
457
+ dbgio " addon command arguments" addonargs
458
458
dbg1IO " running addon" shellcmd
459
459
system shellcmd >>= exitWith
460
460
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ runCommand defaultJournalOverride findBuiltinCommand addons cmdline = do
160
160
then run (Just jpaths) findBuiltinCommand addons opts
161
161
else cmdaction opts j
162
162
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
164
164
Nothing ->
165
165
error' $ " Unrecognized command: " ++ unwords (cmdname: args)
166
166
[] -> return ()
You can’t perform that action at this time.
0 commit comments