mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/shellwords.rb: Update toplevel comment with an example. Patch
by Samnang Chhun. [Ruby 1.9 - Bug #5388] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
983476fbab
commit
6be866e262
2 changed files with 20 additions and 9 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Oct 4 08:21:51 2011 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* lib/shellwords.rb: Update toplevel comment with an example. Patch
|
||||
by Samnang Chhun. [Ruby 1.9 - Bug #5388]
|
||||
|
||||
Tue Oct 4 08:15:50 2011 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* proc.c (proc_call): Update documentation to match argument handling
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
#
|
||||
# shellwords.rb: Manipulates strings a la UNIX Bourne shell
|
||||
#
|
||||
|
||||
##
|
||||
# = Manipulates strings like the UNIX Bourne shell
|
||||
#
|
||||
# This module manipulates strings according to the word parsing rules
|
||||
# of the UNIX Bourne shell.
|
||||
|
@ -9,13 +7,21 @@
|
|||
# The shellwords() function was originally a port of shellwords.pl,
|
||||
# but modified to conform to POSIX / SUSv3 (IEEE Std 1003.1-2001).
|
||||
#
|
||||
# Authors:
|
||||
# - Wakou Aoyama
|
||||
# - Akinori MUSHA <knu@iDaemons.org>
|
||||
# == Example
|
||||
#
|
||||
# Contact:
|
||||
# - Akinori MUSHA <knu@iDaemons.org> (current maintainer)
|
||||
# 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:
|
||||
# * Akinori MUSHA <knu@iDaemons.org> (current maintainer)
|
||||
|
||||
module Shellwords
|
||||
#
|
||||
# Splits a string into an array of tokens in the same way the UNIX
|
||||
|
|
Loading…
Reference in a new issue