* lib/shellwords.rb (Shellwords#shellescape): Add back my original
real world example with some enhancement.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/shellwords.rb (Shellwords#shellescape): Undo part of the
previous rdoc change. This new example using a string-only
array was not in line with the description.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
stringifies the given object using to_s.
* lib/shellwords.rb (Shellwords#shelljoin): shelljoin() accepts
non-string objects in the given array, each of which is
stringified using to_s.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
consecutive backslashes in double quotes are all removed except
the one at the tail.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
that only causes warnings with no real effect. [Bug #5637]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
patch from Masahiro Kawato <m-kawato AT mwb.biglobe.ne.jp> in
[ruby-dev:33060].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/shellwords.rb: Rename shellwords() to shellsplit() and make
the former an alias to the latter.
* lib/shellwords.rb: Add escape(), split(), join() as class
methods, which are aliases to their respective long names
prefixed with `shell'.
* lib/shellwords.rb: Add String#shellescape(), String#shellsplit()
and Array#shelljoin() for convenience.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
lib/shellwords.rb: get rid of shadowing outer local variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
memory leaks. use string object for buffering instead.
[ruby-dev:24738]
* dir.c (join_path): ditto.
* io.c (io_read): external input buffer may be modified even after
rb_str_locktmp(). [ruby-dev:24735]
* dir.c (fnmatch): p or s may be NULL. [ruby-dev:24749]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/shellwords.rb (shellwords): Use String#lstrip!.
* lib/shellwords.rb (shellwords): Recognize an object that
responds to to_str() by using String.new().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
quotes should not be regarded as meta character. This bug or
maybe feature was inherited from Perl's shellwords.pl.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
which included commits to RCS files with non-trunk default branches.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e