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. |
<code/>and<pre/>for code samples.