diff options
author | locriacyber <74560659+locriacyber@users.noreply.github.com> | 2022-02-18 22:24:42 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-18 17:24:42 -0500 |
commit | 516db3bac389ea554166ee1a6671b5005159a30a (patch) | |
tree | 3e9a8fd590770d805238c69494fb315e56059b4f /compiler/nim.nim | |
parent | f019e999d491ecf462421bd750aec0465d308094 (diff) | |
download | Nim-516db3bac389ea554166ee1a6671b5005159a30a.tar.gz |
Remove trailing space in `nim r` command; Amend one error message (#19487)
Diffstat (limited to 'compiler/nim.nim')
-rw-r--r-- | compiler/nim.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/nim.nim b/compiler/nim.nim index b8256d576..86c7ab524 100644 --- a/compiler/nim.nim +++ b/compiler/nim.nim @@ -116,7 +116,8 @@ proc handleCmdLine(cache: IdentCache; conf: ConfigRef) = if cmdPrefix.len > 0: cmdPrefix.add " " # without the `cmdPrefix.len > 0` check, on windows you'd get a cryptic: # `The parameter is incorrect` - execExternalProgram(conf, cmdPrefix & output.quoteShell & ' ' & conf.arguments) + let cmd = cmdPrefix & output.quoteShell & ' ' & conf.arguments + execExternalProgram(conf, cmd.strip(leading=false,trailing=true)) of cmdDocLike, cmdRst2html, cmdRst2tex: # bugfix(cmdRst2tex was missing) if conf.arguments.len > 0: # reserved for future use |