diff options
| author | Philipp Janda <siffiejoe@gmx.net> | 2013-10-14 19:57:01 +0200 |
|---|---|---|
| committer | Philipp Janda <siffiejoe@gmx.net> | 2013-10-14 19:57:01 +0200 |
| commit | 8adef07fb0393a809478c5b3148010f78db377c8 (patch) | |
| tree | f012856cc6ebbf9a3b9909ebbbb6e3dd38b82044 | |
| parent | c557cda7a630933af93e923dd5edd38b462bd3c0 (diff) | |
| download | luarocks-8adef07fb0393a809478c5b3148010f78db377c8.tar.gz luarocks-8adef07fb0393a809478c5b3148010f78db377c8.tar.bz2 luarocks-8adef07fb0393a809478c5b3148010f78db377c8.zip | |
remove non-portable Qb from lua.lua
| -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 |
