We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 941e502 commit 5b9b496Copy full SHA for 5b9b496
helpers.lua
@@ -12,6 +12,7 @@ local pairs = pairs
12
local rawget = rawget
13
local require = require
14
local tonumber = tonumber
15
+local tostring = tostring
16
local io = {
17
open = io.open,
18
popen = io.popen
@@ -137,7 +138,8 @@ end
137
138
-- }}}
139
140
-- {{{ Escape a string for safe usage on the command line
-function helpers.shellquote(s)
141
+function helpers.shellquote(arg)
142
+ local s = tostring(arg)
143
if s == nil then return "" end
144
-- use single quotes, and put single quotes into double quotes
145
-- the string $'b is then quoted as '$'"'"'b'"'"'
0 commit comments