From: Andrew Vos Date: 2011-01-30T01:22:36+09:00 Subject: [ruby-core:34976] Re: [Ruby 1.9-Bug#4343][Open] Dir.glob does match files without extension --e0cb4e43cbf106775f049afe97b8 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Interesting, I didn't know that. 2011/1/29 V=EDt Ondruch > Yes, I know that I have dot there, but on Windows, "bla" and "bla." are > equivalent, therefore they have to match. > > > Dne 29.1.2011 17:00, Andrew Vos napsal(a): > > Your glob won't match "bla" because you have a "." in there. > > 2011/1/29 Vit Ondruch > >> Bug #4343: Dir.glob does match files without extension >> http://redmine.ruby-lang.org/issues/show/4343 >> >> Author: Vit Ondruch >> Status: Open, Priority: Normal >> ruby -v: ruby 1.9.3dev (2011-01-28) [i386-mingw32] >> >> C:\temp\pat>dir bla.* >> Svazek v jednotce C je Windows7_x64_OS. >> S=E9riov=E9 =E8=EDslo svazku je 2C6E-5F69. >> >> V=FDpis adres=E1=F8e C:\temp\pat >> >> 29.01.2011 15:37 0 bla >> 29.01.2011 15:37 0 bla.rb >> Soubor=F9: 2, Bajt=F9: 0 >> Adres=E1=F8=F9: 0, Voln=FDch bajt=F9: 21 453 963 264 >> >> >> C:\temp\pat>ruby -e "p Dir.glob('bla.*')" >> ["bla.rb"] >> >> >> ---------------------------------------- >> http://redmine.ruby-lang.org >> >> > > --e0cb4e43cbf106775f049afe97b8 Content-Type: text/html; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Interesting, I didn't know that.

2011/1/29 V=EDt Ondruch <v.ondruch@gmail.com>
=20 =20 =20
Yes, I know that I have dot there, but on Windows, "bla" and = "bla." are equivalent, therefore they have to match.


Dne 29.1.2011 17:00, Andrew Vos napsal(a):
Your glob won't match "bla" because you have a "." in there.

2011/1/29 Vit Ondruch &l= t;redmine@ruby-l= ang.org>
Bug #4343: Dir.= glob does match files without extension
http://redmine.ruby-lang.org/issues/show/4343

Author: Vit Ondruch
Status: Open, Priority: Normal
ruby -v: ruby 1.9.3dev (2011-01-28) [i386-mingw32]

C:\temp\pat>dir bla.*
=A0Svazek v jednotce C je Windows7_x64_OS.
=A0S=E9riov=E9 =E8=EDslo svazku je 2C6E-5F69.

=A0V=FDpis adres=E1=F8e C:\temp\pat

29.01.2011 =A015:37 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0 bla
29.01.2011 =A015:37 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0 bla.rb
=A0 =A0 =A0 =A0 =A0 Soubor=F9: =A0 =A0 =A02, =A0 Bajt=F9: =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A00
=A0 =A0 =A0 =A0 =A0 Adres=E1=F8=F9: =A0 =A0 0, =A0 Voln=FDch bajt= =F9: 21=A0453=A0963=A0264


C:\temp\pat>ruby -e "p Dir.glob('bla.*')" ["bla.rb"]


----------------------------------------
http:/= /redmine.ruby-lang.org




--e0cb4e43cbf106775f049afe97b8--