Project

General

Profile

Bug #5388 ยป 0001-lib-shellwords.rb-Update-documentation-to-include-ex.patch

samnang (Samnang Chhun), 10/03/2011 06:10 PM

View differences:

ChangeLog
Mon Oct 3 15:47:24 2011 Samnang Chhun <samnang.chhun@gmail.com>
* lib/shellwords.rb: Update Documentation to include example
Sun Oct 2 20:05:32 2011 Kazuki Tsujimoto <kazuki@callcc.net>
* vm.c (rb_thread_mark), cont.c (cont_mark): revert r33369 and r33371
lib/shellwords.rb
#
# shellwords.rb: Manipulates strings a la UNIX Bourne shell
#
##
# = Manipulates strings a la UNIX Bourne shell
#
# This module manipulates strings according to the word parsing rules
# of the UNIX Bourne shell.
......
# The shellwords() function was originally a port of shellwords.pl,
# but modified to conform to POSIX / SUSv3 (IEEE Std 1003.1-2001).
#
# Authors:
# == Example
#
# argv = Shellwords.split('here are "two words"') # or String#shellsplit
# argv #=> ["here", "are", "two words"]
#
# argv = Shellwords.escape("special's.txt") # or String#shellescape
# system("cat " + argv)
#
# == Authors:
# - Wakou Aoyama
# - Akinori MUSHA <knu@iDaemons.org>
#
# Contact:
# == Contact:
# - Akinori MUSHA <knu@iDaemons.org> (current maintainer)
#
module Shellwords
#
# Splits a string into an array of tokens in the same way the UNIX
    (1-1/1)