diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-13 21:02:28 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-13 21:02:28 +0000 |
| commit | 40bbf2143216c2cfa06d1aafd168b953e31f7504 (patch) | |
| tree | be39d5cab2c413782e28c38c827874b1ff073d6a | |
| parent | 85e375d447ea084e2c1352643a353ff5ec690b35 (diff) | |
* lib/optparse.rb (OptionParser#environment): requires shellwords.
[ruby-dev:35466]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | lib/optparse.rb | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Mon Jul 14 06:02:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * lib/optparse.rb (OptionParser#environment): requires shellwords. + [ruby-dev:35466] + Mon Jul 14 05:09:06 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> * bignum.c (big2ulong, big2ull): constified. diff --git a/lib/optparse.rb b/lib/optparse.rb index 134b540cfb..389a815ffc 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -1476,6 +1476,7 @@ class OptionParser # def environment(env = File.basename($0, '.*')) env = ENV[env] || ENV[env.upcase] or return + require 'shellwords' parse(*Shellwords.shellwords(env)) end |
