From 64bf574dbb1fcd190ba22aa026a69d81d2d0bd5b Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Tue, 12 Nov 2013 20:34:25 +0100 Subject: added quoting to os command, failed with paths containing spaces --- src/luarocks/fs/win32/tools.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/luarocks/fs/win32/tools.lua b/src/luarocks/fs/win32/tools.lua index e08de97a..979aaff4 100644 --- a/src/luarocks/fs/win32/tools.lua +++ b/src/luarocks/fs/win32/tools.lua @@ -42,7 +42,7 @@ end function current_dir() local current = cfg.cache_pwd if not current then - local pipe = io.popen(vars.PWD) + local pipe = io.popen(fs.Q(vars.PWD)) current = pipe:read("*l") pipe:close() cfg.cache_pwd = current -- cgit v1.2.3-55-g6feb