Methods

Shellwords

Public Instance Methods

escape(cmdline) click to toggle source

Escape special characters used in most unix shells to use it, eg. with system().

    # File lib/more/facets/shellwords.rb, line 10
10:   def escape(cmdline)
11:     cmdline.gsub(/([\\\t\| &`<>)('"])/) { |s| '\' << s }
12:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.