From af03c342789dce9799af2f41fda42f7d36467b85 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 16 Apr 2020 13:45:50 -0300 Subject: Handle quoting at the application level (#1181) This is done to support Windows. Unix handles quoting at the shell level. While quotes are technically valid as part of Unix names, I don't expect this pathological case to be something we need to support. Closes #1173. --- spec/cmd_spec.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spec') diff --git a/spec/cmd_spec.lua b/spec/cmd_spec.lua index 705b8845..2c3f9f47 100644 --- a/spec/cmd_spec.lua +++ b/spec/cmd_spec.lua @@ -46,6 +46,10 @@ describe("LuaRocks command line #integration", function() it("passes if given a valid path with Lua", function() assert.truthy(run.luarocks("--lua-dir=" .. test_env.testing_paths.luadir)) end) + + it("passes if given a quoted path with Lua", function() + assert.truthy(run.luarocks("--lua-dir '" .. test_env.testing_paths.luadir .. "'")) + end) end) describe("--lua-version", function() -- cgit v1.2.3-55-g6feb