[Bug #1485] warning in pathname when verbose mode


#1

Bug #1485: warning in pathname when verbose mode
http://redmine.ruby-lang.org/issues/show/1485

e$B5/I<<Te(B: Kazuhiro NISHIYAMA
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
e$BC4Ev<Te(B: Akira T., e$B%+%F%4%je(B: lib
ruby -v: ruby 1.9.2dev (2009-05-15 trunk 23433) [i686-linux]

verbose mode e$B$Ge(B pathname e$B$re(B require e$B$9$k$He(B warning
e$B$,$G$^$9!#e(B

% ruby-trunk -v -r pathname -e ‘’
ruby 1.9.2dev (2009-05-15 trunk 23433) [i686-linux]
/home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/pathname.rb:273: warning: *' interpreted as argument prefix % ruby-1.9.1 -v -r pathname -e '' ruby 1.9.1p129 (2009-05-12 revision 23411) [i686-linux] /home/kazu/opt/ruby-1.9.1/lib/ruby-1.9.1/1.9.1/pathname.rb:270: warning:’ interpreted as argument prefix
% ruby18 -v -r pathname -e ‘’
ruby 1.8.8dev (2009-05-15 revision 23432) [i686-linux]
/home/kazu/opt/ruby18/lib/ruby/1.8/pathname.rb:263: warning: `

interpreted as argument prefix
% ruby-1.8.7 -v -r pathname -e ‘’
ruby 1.8.7 (2009-04-08 patchlevel 160) [i686-linux]
% ruby-1.8.6 -v -r pathname -e ‘’
ruby 1.8.6 (2009-03-31 patchlevel 368) [i686-linux]
%


#2

e$B%A%1%C%He(B #1485 e$B$,99?7$5$l$^$7$?!#e(B (by Suraj K.)

This bug still occurs in Ruby 1.9.1p243:

ruby -v -r pathname -e ‘’
ruby 1.9.1p243 (2009-07-16 revision 24175) [i686-linux]
/usr/lib/ruby/1.9.1/pathname.rb:270: warning: `*’ interpreted as
argument prefix

ruby -r pathname -e ‘’

Thanks for your consideration.

http://redmine.ruby-lang.org/issues/show/1485


#3

e$B%A%1%C%He(B #1485 e$B$,99?7$5$l$^$7$?!#e(B (by Akira T.)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

Applied in changeset r23483.

http://redmine.ruby-lang.org/issues/show/1485


#4

e$B%A%1%C%He(B #1485 e$B$,99?7$5$l$^$7$?!#e(B (by Adam S.)

Has this gone into 1.9.1?

http://redmine.ruby-lang.org/issues/show/1485


#5

e$B%A%1%C%He(B #1485 e$B$,99?7$5$l$^$7$?!#e(B (by Yuki S.)

e$B%9%F!<%?%9e(B Assignede$B$+$ie(BRejectede$B$KJQ99e(B

warninge$BM^@)$O%^!<%8$7$^$;$s!#e(B

http://redmine.ruby-lang.org/issues/show/1485


#6

e$B%A%1%C%He(B #1485 e$B$,99?7$5$l$^$7$?!#e(B (by John C.)

e$B%U%!%$%ke(B pathname_warning.patch e$BDI2Ce(B

Still present in…
ruby-1.8.7-p249.tar.bz2
ruby-1.9.1-p378.tar.bz2

Attached one line patch fixes…

http://redmine.ruby-lang.org/issues/show/1485