Might be a bug with `os.execShellCmd` 
<https://github.com/nim-lang/Nim/blob/devel/compiler/docgen.nim#L536>
    
    
    import std/os
    echo execShellCmd("\"C:\\Users\\Bren 
(Work)\\.choosenim\\toolchains\\nim-1.6.6\\bin\\nim.exe\" -v")
    echo execShellCmd("\"C:\\Users\\Bren 
(Work)\\.choosenim\\toolchains\\nim-#devel\\bin\\nim.exe\" c -r 
--lib:\"C:\\Users\\Bren (Work)\\.choosenim\\toolchains\\nim-#devel\\lib\" 
--warning:UnusedImport:off --path:C:\\Files\\projects\\libtrackerboy\\src 
--nimcache:\"C:\\Users\\Bren (Work)\\nimcache\\trackerboy_d\\runnableExamples\" 
  \"C:\\Users\\Bren 
(Work)\\nimcache\\trackerboy_d\\runnableExamples\\common_group0_examples.nim\"")
    
    
    Run

Prints:
    
    
    Nim Compiler Version 1.7.1 [Windows: amd64]
    Compiled at 2022-05-18
    Copyright (c) 2006-2022 by Andreas Rumpf
    
    active boot switches: -d:release
    0
    'C:\Users\Bren' is not recognized as an internal or external command,
    operable program or batch file.
    1
    
    
    Run

Reply via email to