Module

Shellwords

This module is originally a port of shellwords.pl, but modified to conform to POSIX / SUSv3 (IEEE Std 1003.1-2001).

Examples:

require 'shellwords'
words = Shellwords.shellwords(line)

or

require 'shellwords'
include Shellwords
words = shellwords(line)
Public Methods
shellwords Split text into an array of tokens in the same way the UNIX Bourne shell does.
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.