ruby-changes:59068
From: Nobuyoshi <ko1@a...>
Date: Wed, 4 Dec 2019 21:55:40 +0900 (JST)
Subject: [ruby-changes:59068] fb11e6089d (master): [DOC] Added File::FNM_SYSCASE example [Bug #16391] [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=fb11e6089d From fb11e6089dbe9d995510977def038a21882bcffe Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 4 Dec 2019 21:52:29 +0900 Subject: [DOC] Added File::FNM_SYSCASE example [Bug #16391] [ci skip] diff --git a/dir.c b/dir.c index 93c696b..6a926f4 100644 --- a/dir.c +++ b/dir.c @@ -3176,6 +3176,7 @@ fnmatch_brace(const char *pattern, VALUE val, void *enc) https://github.com/ruby/ruby/blob/trunk/dir.c#L3176 * * File.fnmatch('cat', 'CAT') #=> false # case sensitive * File.fnmatch('cat', 'CAT', File::FNM_CASEFOLD) #=> true # case insensitive + * File.fnmatch('cat', 'CAT', File::FNM_SYSCASE) #=> true or false # depends on the system default * * File.fnmatch('?', '/', File::FNM_PATHNAME) #=> false # wildcard doesn't match '/' on FNM_PATHNAME * File.fnmatch('*', '/', File::FNM_PATHNAME) #=> false # ditto -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/