Remove explicit wrapping of Shellwords.escape in double quotes

According to http://www.ruby-doc.org/stdlib-1.9.3/libdoc/shellwords/rdoc/Shellwords.html#method-c-shellescape

"Note that a resulted string should be used unquoted and is not
intended for use in double quotes nor in single quotes."
This commit is contained in:
Kevin McAllister
2012-09-06 15:13:21 -04:00
committed by Kevin McAllister
parent 6c04dab649
commit 7b4eabf0c5
+1 -1
View File
@@ -91,7 +91,7 @@ private ######################################################################
end
def shell_quote(value)
'"' + Shellwords.escape(value) + '"'
Shellwords.escape(value)
end
# deprecated