[#2748] Proposal: New Bignum — "Evan Webb" <evan@...>
During some experiments with ruby cryptography, I found some problems with
11 messages
2004/04/06
[#2749] Re: Proposal: New Bignum
— matz@... (Yukihiro Matsumoto)
2004/04/06
Hi,
[#2764] RDoc :enddoc: — Tanaka Akira <akr@...17n.org>
I found that RDoc document some method after :enddoc:. Is it
7 messages
2004/04/10
[#2788] Problems building ext/io/wait.c in 1.8 branch — Gavin Sinclair <gsinclair@...>
I can't get io/wait installed. The main problem is that it doesn't
6 messages
2004/04/17
[#2799] Re: Problems building ext/io/wait.c in 1.8 branch
— Gavin Sinclair <gsinclair@...>
2004/04/21
On Saturday, April 17, 2004, 4:42:14 PM, Gavin wrote:
[#2800] Re: Problems building ext/io/wait.c in 1.8 branch
— ts <decoux@...>
2004/04/21
>>>>> "G" == Gavin Sinclair <gsinclair@soyabean.com.au> writes:
[#2801] Re: Problems building ext/io/wait.c in 1.8 branch
— Gavin Sinclair <gsinclair@...>
2004/04/21
On Thursday, April 22, 2004, 1:21:29 AM, ts wrote:
[#2805] Bug 1318 — Steven Jenkins <steven.jenkins@...>
Any comments on
9 messages
2004/04/23
[#2814] Tempfile strangeness in 1.9.0 — Steven Jenkins <steven.jenkins@...>
I didn't open a bug for this because it's from the CVS head, but it
5 messages
2004/04/24
Re [ruby-dev:23297] new function for matching path name (and case sensitivity depends on system)
From:
"H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
Date:
2004-04-01 11:28:45 UTC
List:
ruby-core #2731
Hi, rubyists.
I proposed new function File.match? to match path name
and that case sensitivity depends on system. (like Dir.glob in 1.9.0).
This function will share implementation with File.fnmatch. Only difference is flags.
File.match?(.., flags) == File.fnmatch(..., flags | FNM_PATHNAME | (DOSISH ? FNM_CASEFOLD : 0))
Currently, in Windows, if you want to match bitmap file name starting with 'a', and located descendant of
c:/windows, you should write
File.fnmatch('c:/windows/**/a*.bmp', your_path, File::FNM_PATHNAME | File::FNM_CASEFOLD)
If File.match? exists, you can write
File.match?('c:/windows/**/a*.bmp', your_path)
This is shorter. And if you are Windows user, you don't have to spell File::FNM_CASEFOLD any more.
And I like FNM_PATHNAME because I think 'a*.bmp' should not match 'abc/def/ghi/some.bmp' but match 'abc.bmp'.
......
But anyway, I don't use File.fnmatch quite often, and I'm not sure this function is realy useful.
Is this function useful? Any comments will be appliciated.
Thank you.