# File lib/standard/facets/shellwords.rb, line 17 def escape(cmdline) cmdline.gsub(/([\\\t\| &`<>)('"])\$/) { |s| '\\' << s } end