diff options
-rw-r--r-- | src/luarocks/fs/win32.lua | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/luarocks/fs/win32.lua b/src/luarocks/fs/win32.lua index b6ea25e4..6f7ba140 100644 --- a/src/luarocks/fs/win32.lua +++ b/src/luarocks/fs/win32.lua | |||
@@ -9,15 +9,6 @@ local cfg = require("luarocks.cfg") | |||
9 | local dir = require("luarocks.dir") | 9 | local dir = require("luarocks.dir") |
10 | local util = require("luarocks.util") | 10 | local util = require("luarocks.util") |
11 | 11 | ||
12 | -- Monkey patch io.popen and os.execute to make sure quoting | ||
13 | -- works as expected. | ||
14 | -- See http://lua-users.org/lists/lua-l/2013-11/msg00367.html | ||
15 | local _prefix = "type NUL && " | ||
16 | local _popen, _execute = io.popen, os.execute | ||
17 | io.popen = function(cmd, ...) return _popen(_prefix..cmd, ...) end | ||
18 | os.execute = function(cmd, ...) return _execute(_prefix..cmd, ...) end | ||
19 | |||
20 | |||
21 | --- Annotate command string for quiet execution. | 12 | --- Annotate command string for quiet execution. |
22 | -- @param cmd string: A command-line string. | 13 | -- @param cmd string: A command-line string. |
23 | -- @return string: The command-line, with silencing annotation. | 14 | -- @return string: The command-line, with silencing annotation. |