From 8adef07fb0393a809478c5b3148010f78db377c8 Mon Sep 17 00:00:00 2001 From: Philipp Janda Date: Mon, 14 Oct 2013 19:57:01 +0200 Subject: remove non-portable Qb from lua.lua --- src/luarocks/fs/lua.lua | 12 ------------ 1 file changed, 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) return "'" .. arg:gsub("'", "'\\''") .. "'" end ---- Quote argument for shell processing in batch files/scripts. --- By default calls fs.Q() --- @param arg string: Unquoted argument. --- @return string: Quoted argument. -function Qb(arg) - assert(type(arg) == "string") - - -- only strange platforms (aka Windows) need special - -- escape handling for scripts/batch files - return fs.Q(arg) -end - --- Test is file/dir is writable. -- Warning: testing if a file/dir is writable does not guarantee -- that it will remain writable and therefore it is no replacement -- cgit v1.2.3-55-g6feb