Actions
Bug #269
closedOptionParser#environment requires shellwords
Description
=begin
OptionParser#environment が shellwords ライブラリの Shellwords.shellwords を
使っていますが、optparse.rb 自体は shellwords を require していません。
ので OptionParser#environment を使うと常に例外が発生します。
$ cat t.rb
require 'optparse'
ENV["A"] = '-a -b'
p OptionParser.new.environment("A")
$ ruby-1.8 -v t.rb
ruby 1.8.7 (2008-07-01 revision 17756) [i686-linux]
/usr/local/lib/ruby/1.8/optparse.rb:1479:in `environment': uninitialized constant OptionParser::Shellwords (NameError)
from t.rb:3
=end
Updated by shyouhei (Shyouhei Urabe) over 16 years ago
- Assignee set to nobu (Nobuyoshi Nakada)
=begin
Assigning to nobu; optparse.
=end
Updated by nobu (Nobuyoshi Nakada) over 16 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
Applied in changeset r18058.
=end
Actions
Like0
Like0Like0