Project

General

Profile

Actions

Bug #2216

closed

Command line parameter's order should not be significant

Bug #2216: Command line parameter's order should not be significant

Added by vo.x (Vit Ondruch) about 16 years ago. Updated over 14 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2009-10-07) [i386-mswin32_90]
Backport:
[ruby-core:26098]

Description

=begin
I would expect that following two examples will have the same result:

c:>r192vc-w32\bin\ruby.exe -I. -Cc:\temp -e 'p $:'
["c:/", "c:/r192vc-w32/lib/ruby/site_ruby/1.9.1", "c:/r192vc-w32/lib/ruby/site_ruby/1.9.1/i386-mswin32_90", "c:/r192vc-w32/lib/ruby/site_ruby", "c:/r192vc-w32/lib/ruby/vendor_ruby/1.9.1", "c:/r192vc-w32/lib/ruby/vendor_ruby/1.9.1/i386-mswin32_90",
"c:/r192vc-w32/lib/ruby/vendor_ruby", "c:/r192vc-w32/lib/ruby/1.9.1", "c:/r192vc-w32/lib/ruby/1.9.1/i386-mswin32_90"]

c:>r192vc-w32\bin\ruby.exe -Cc:\temp -I. -e 'p $:'
["c:/temp", "c:/r192vc-w32/lib/ruby/site_ruby/1.9.1", "c:/r192vc-w32/lib/ruby/site_ruby/1.9.1/i386-mswin32_90", "c:/r192vc-w32/lib/ruby/site_ruby", "c:/r192vc-w32/lib/ruby/vendor_ruby/1.9.1", "c:/r192vc-w32/lib/ruby/vendor_ruby/1.9.1/i386-mswin32_90", "c:/r192vc-w32/lib/ruby/vendor_ruby", "c:/r192vc-w32/lib/ruby/1.9.1", "c:/r192vc-w32/lib/ruby/1.9.1/i386-mswin32_90"]

However, as you can see from the first entry, the result is different. This is confusing behavior.
=end

Updated by nobu (Nobuyoshi Nakada) about 16 years ago Actions #1

  • Status changed from Open to Rejected

=begin
It's insignificant in some commands, and significant in some commands.
Ruby is one of the latter.
=end

Actions

Also available in: PDF Atom