summaryrefslogtreecommitdiff
path: root/xmake/core/base
diff options
context:
space:
mode:
authorruki <[email protected]>2020-03-25 22:36:06 +0800
committerruki <[email protected]>2020-03-25 09:36:38 +0800
commit6cea9b08790ce55bc278c0567ac0b1d00f896707 (patch)
treee44623cbcd93b04943446c7d86f22d1d65cb678e /xmake/core/base
parentff2e3546b8622c64889418e077ee1a1038b1d059 (diff)
fix and improve os.args
Diffstat (limited to 'xmake/core/base')
-rw-r--r--xmake/core/base/os.lua29
1 files changed, 0 insertions, 29 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index d2ccd070b..b6334a922 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -225,35 +225,6 @@ function os._match_wildcard_pathes(v)
return v
end
--- make string from arguments list
-function os.args(argv)
-
- -- make it
- local args = nil
- for _, arg in ipairs(table.wrap(argv)) do
- arg = arg:trim()
- if #arg > 0 then
- arg = arg:gsub("([\"\\])", "\\%1")
- if arg:find("[%s%(%)]") then
- if args then
- args = args .. " \"" .. arg .. "\""
- else
- args = "\"" .. arg .. "\""
- end
- else
- if args then
- args = args .. " " .. arg
- else
- args = arg
- end
- end
- end
- end
-
- -- ok?
- return args or ""
-end
-
-- match files or directories
--
-- @param pattern the search pattern