summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-02-23 10:38:15 +0800
committerruki <[email protected]>2020-02-23 10:38:15 +0800
commit9366df74ac518a568de7091bcffca735632dc200 (patch)
tree437fdcf583033de53f971ea0fc99586f19ac6d67
parentabd91d0047c0ed5420ce8e68987f6a4f8c31ded0 (diff)
improve os.args
-rw-r--r--xmake/core/base/os.lua2
1 files changed, 1 insertions, 1 deletions
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