Open konsumlamm opened 1 year ago
@Yardanico Might be worth having Nim's CI/CD mechanism run in a path containing special/unusual characters, to catch cases like this.
I don't think Nim generally escape paths for this case,
wind@DESKTOP-M4S17KE:~/$Contributions/Nim$ nim c --nimcache:xcache koch.nim
command line(1, 2) Error: invalid path: /home/wind/$Contributions/Nim/xcache
It failed too.
Description
My Nim fork is in a directory called
$Contributions
. Runningnim c koch.nim && ./koch temp
results in an error:This is because koch uses
execShellCmd
, which doesn't escape the path name.Similarly, having a space in the path (which is probably more common) also results in an error.
Nim Version
Nim Compiler Version 2.1.1 [Linux: amd64] Compiled at 2023-09-14 Copyright (c) 2006-2023 by Andreas Rumpf
git hash: ac1804aba665b34a01cb014183f8fff0ba6db738 active boot switches: -d:release