From 9366df74ac518a568de7091bcffca735632dc200 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 23 Feb 2020 10:38:15 +0800 Subject: improve os.args --- xmake/core/base/os.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua index 0ec557dcb..ff0b494e8 100644 --- a/xmake/core/base/os.lua +++ b/xmake/core/base/os.lua @@ -232,7 +232,7 @@ function os.args(argv) arg = arg:trim() if #arg > 0 then arg = arg:gsub("([\"\\])", "\\%1") - if arg:find("%s") then + if arg:find("[%s%(%)]") then if args then args = args .. " \"" .. arg .. "\"" else -- cgit v1.3.1