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 /lib/optparse.rb | |
| 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
Diffstat (limited to 'lib/optparse.rb')
| -rw-r--r-- | lib/optparse.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
