diff --git a/lib/pure/ospaths.nim b/lib/pure/ospaths.nim index 9a6afe708924a..2ca4f75e8184f 100644 --- a/lib/pure/ospaths.nim +++ b/lib/pure/ospaths.nim @@ -631,7 +631,8 @@ when defined(windows) or defined(posix) or defined(nintendoswitch): assert quoteShellCommand(["aaa", "", "c d"]) == "aaa '' 'c d'" when defined(windows): assert quoteShellCommand(["aaa", "", "c d"]) == "aaa \"\" \"c d\"" - result = args.map(quoteShell).join(" ") + # can't use `map` pending https://github.com/nim-lang/Nim/issues/8303 + result = args.mapIt(quoteShell(it)).join(" ") when isMainModule: assert quoteShellWindows("aaa") == "aaa"