summaryrefslogtreecommitdiff
path: root/xmake/scripts/tools/echo.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-06 22:35:48 +0800
committerruki <[email protected]>2015-06-06 22:35:48 +0800
commit7c091cff74f038381c5e16576afeb7d4713bc917 (patch)
treedd3490039c2d114c471151819d62144d9549546e /xmake/scripts/tools/echo.lua
parent6222a6ede3f06a0c67eccf0225d0ffb88cf9d4c8 (diff)
add warning and escape verboses
Diffstat (limited to 'xmake/scripts/tools/echo.lua')
-rw-r--r--xmake/scripts/tools/echo.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/scripts/tools/echo.lua b/xmake/scripts/tools/echo.lua
index d9ee8f872..45abf8c24 100644
--- a/xmake/scripts/tools/echo.lua
+++ b/xmake/scripts/tools/echo.lua
@@ -32,7 +32,7 @@ function echo.main(...)
-- echo all
for _, v in ipairs(...) do
- io.write(string.format("%s ", v:gsub("%%20", " "):gsub("%%3d", "="):gsub("%%22", "\"")))
+ io.write(string.format("%s ", v:gsub("%%(%x%x)", function (w) return string.char(tonumber(w, 16)) end)))
end
io.write("\n")