Skip to content

Commit 516db3b

Browse files
authored
Remove trailing space in nim r command; Amend one error message (#19487)
1 parent f019e99 commit 516db3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/nim.nim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ proc handleCmdLine(cache: IdentCache; conf: ConfigRef) =
116116
if cmdPrefix.len > 0: cmdPrefix.add " "
117117
# without the `cmdPrefix.len > 0` check, on windows you'd get a cryptic:
118118
# `The parameter is incorrect`
119-
execExternalProgram(conf, cmdPrefix & output.quoteShell & ' ' & conf.arguments)
119+
let cmd = cmdPrefix & output.quoteShell & ' ' & conf.arguments
120+
execExternalProgram(conf, cmd.strip(leading=false,trailing=true))
120121
of cmdDocLike, cmdRst2html, cmdRst2tex: # bugfix(cmdRst2tex was missing)
121122
if conf.arguments.len > 0:
122123
# reserved for future use

0 commit comments

Comments
 (0)