diff options
-rw-r--r-- | src/luarocks/fs/lua.lua | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/luarocks/fs/lua.lua b/src/luarocks/fs/lua.lua index 119fcbe4..0e81d877 100644 --- a/src/luarocks/fs/lua.lua +++ b/src/luarocks/fs/lua.lua | |||
@@ -42,18 +42,6 @@ function Q(arg) | |||
42 | return "'" .. arg:gsub("'", "'\\''") .. "'" | 42 | return "'" .. arg:gsub("'", "'\\''") .. "'" |
43 | end | 43 | end |
44 | 44 | ||
45 | --- Quote argument for shell processing in batch files/scripts. | ||
46 | -- By default calls fs.Q() | ||
47 | -- @param arg string: Unquoted argument. | ||
48 | -- @return string: Quoted argument. | ||
49 | function Qb(arg) | ||
50 | assert(type(arg) == "string") | ||
51 | |||
52 | -- only strange platforms (aka Windows) need special | ||
53 | -- escape handling for scripts/batch files | ||
54 | return fs.Q(arg) | ||
55 | end | ||
56 | |||
57 | --- Test is file/dir is writable. | 45 | --- Test is file/dir is writable. |
58 | -- Warning: testing if a file/dir is writable does not guarantee | 46 | -- Warning: testing if a file/dir is writable does not guarantee |
59 | -- that it will remain writable and therefore it is no replacement | 47 | -- that it will remain writable and therefore it is no replacement |