Hi,
In working with luarocks and luaJIT on Windows, I think I've found a bug.
In fs\win32.lua, the code reads:
function Q(arg)
assert(type(arg) == "string")
-- Quote DIR for Windows
if arg:match("^[\.a-zA-Z]?:?[\\/]") then -- XX BUG HERE
return '"' .. arg:gsub("/", "\\"):gsub('"', '\\"') .. '"'
end
-- URLs and anything else
return '"' .. arg:gsub('"', '\\"') .. '"'
end
But, what I think what is meant is:
function Q(arg)
assert(type(arg) == "string")
-- Quote DIR for Windows
if arg:match("^[%.a-zA-Z]?:?[\\/]") then -- XX FIX??
return '"' .. arg:gsub("/", "\\"):gsub('"', '\\"') .. '"'
end
-- URLs and anything else
return '"' .. arg:gsub('"', '\\"') .. '"'
end
In other words, include period (.) in the character class.
Cheers,
Daniel M. Klein
NOTICE OF CONFIDENTIAL AND PRIVILEGED INFORMATION
This e-mail message, including any attachments, may contain information that is
confidential, privileged, subject to copyright, or exempt from disclosure. Any
unauthorized distribution, disclosure, copying, review, retransmission or other
use
of or reliance on this information may be unlawful and is strictly prohibited.
You
may contact us at: [email protected]
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers